bp_friend_search_form

Display a Friends search form.

Description

bp_friend_search_form(); 

No longer used in BuddyPress.


Usage

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

Defined (1)

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

/bp-friends/bp-friends-template.php  
  1. function bp_friend_search_form() { 
  2.  
  3. $action = bp_displayed_user_domain() . bp_get_friends_slug() . '/my-friends/search/'; 
  4. $label = __( 'Filter Friends', buddypress ); ?> 
  5.  
  6. <form action="<?php echo $action ?>" id="friend-search-form" method="post"> 
  7.  
  8. <label for="friend-search-box" id="friend-search-label"><?php echo $label ?></label> 
  9. <input type="search" name="friend-search-box" id="friend-search-box" value="<?php echo $value ?>"<?php echo $disabled ?> /> 
  10.  
  11. <?php wp_nonce_field( 'friends_search', '_wpnonce_friend_search' ) ?> 
  12.  
  13. <input type="hidden" name="initiator" id="initiator" value="<?php echo esc_attr( bp_displayed_user_id() ) ?>" /> 
  14.  
  15. </form> 
  16.  
  17. <?php