friends_screen_my_friends

  • do_action( 'friends_screen_my_friends' )

    Source Reference:

    • Component: BuddyPress:: bp-friends
      File: /bp-friends/bp-friends-screens.php :: Trac Source Line: 17
      // Exit if accessed directly
      if ( !defined( 'ABSPATH' ) ) exit;
      
      function friends_screen_my_friends() {
      	global $bp;
      
      	// Delete any friendship acceptance notifications for the user when viewing a profile
      	bp_core_delete_notifications_by_type( $bp->loggedin_user->id, $bp->friends->id, 'friendship_accepted' );
      
      	do_action( 'friends_screen_my_friends' );
      
      	bp_core_load_template( apply_filters( 'friends_template_my_friends', 'members/single/home' ) );
      }
      
      function friends_screen_requests() {
      	if ( bp_is_action_variable( 'accept', 0 ) && is_numeric( bp_action_variable( 1 ) ) ) {
      		// Check the nonce
      		check_admin_referer( 'friends_accept_friendship' );
      
      		if ( friends_accept_friendship( bp_action_variable( 1 ) ) )
      

Comments are closed.