SHARE
TWEET

Untitled

a guest Jul 9th, 2014 116 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Adds a "New Content" activity dropdown filter.
  3.  *
  4.  * This filters the activity loop by new blog posts, blog comments and forum
  5.  * topics.
  6.  */
  7. function my_bp_add_custom_activity_dropdown_filter() {
  8.         $types = 'new_blog_post,new_blog_comment,bbp_topic_create,new_forum_topic';
  9.  
  10. ?>
  11.  
  12.         <option value="<?php esc_attr_e( $types ); ?>">New Content</option>
  13.  
  14. <?php
  15. }
  16. add_action( 'bp_activity_filter_options', 'my_bp_add_custom_activity_dropdown_filter' );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top