bp_friends_filter_title

Filters the title for the Friends component.

Description

bp_friends_filter_title(); 

Usage

  1. if ( !function_exists( 'bp_friends_filter_title' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/deprecated/1.6.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_friends_filter_title(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/deprecated/1.6.php  
  1. function bp_friends_filter_title() { 
  2. _deprecated_function( __FUNCTION__, '1.6', 'Since BuddyPress 1.2, BP has not supported ordering of friend lists by URL parameters.' ); 
  3.  
  4. $current_filter = bp_action_variable( 0 ); 
  5.  
  6. switch ( $current_filter ) { 
  7. case 'recently-active': default: 
  8. _e( 'Recently Active', buddypress ); 
  9. break; 
  10. case 'newest': 
  11. _e( 'Newest', buddypress ); 
  12. break; 
  13. case 'alphabetically': 
  14. _e( 'Alphabetically', buddypress ); 
  15. break;