bp_get_avatar_delete_link

  • apply_filters( 'bp_get_avatar_delete_link', wp_nonce_url( $bp->displayed_user->domain . $bp->profile->slug . '/change-avatar/delete-avatar/', 'bp_delete_avatar_link' ) )

    Source Reference:

    • Component: BuddyPress :: bp-xprofile
      File: /bp-xprofile/bp-xprofile-template.php :: Trac Source Line: 791
      		return apply_filters( 'bp_get_current_profile_group_id', $profile_group_id ); // admin/profile/edit/[group-id]
      	}
      
      function bp_avatar_delete_link() {
      	echo bp_get_avatar_delete_link();
      }
      	function bp_get_avatar_delete_link() {
      		global $bp;
      
      		return apply_filters( 'bp_get_avatar_delete_link', wp_nonce_url( $bp->displayed_user->domain . $bp->profile->slug . '/change-avatar/delete-avatar/', 'bp_delete_avatar_link' ) );
      	}
      
      function bp_get_user_has_avatar() {
      	global $bp;
      
      	if ( !bp_core_fetch_avatar( array( 'item_id' => $bp->displayed_user->id, 'no_grav' => true ) ) )
      		return false;
      
      	return true;
      }
      

Comments are closed.