bp_core_get_total_member_count

  • apply_filters( 'bp_core_get_total_member_count', $count )

    Source Reference:

    • Component: BuddyPress :: bp-members
      File: /bp-members/bp-members-functions.php :: Trac Source Line: 486
      function bp_core_get_total_member_count() {
      	global $wpdb, $bp;
      
      	if ( !$count = wp_cache_get( 'bp_total_member_count', 'bp' ) ) {
      		$status_sql = bp_core_get_status_sql();
      		$count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(ID) FROM $wpdb->users WHERE {$status_sql}" ) );
      		wp_cache_set( 'bp_total_member_count', $count, 'bp' );
      	}
      
      	return apply_filters( 'bp_core_get_total_member_count', $count );
      }
      
      /**
       * Checks if the user has been marked as a spammer.
       *
       * @package BuddyPress Core
       * @param int $user_id int The id for the user.
       * @return bool True if spammer, False if not.
       */
      function bp_core_is_user_spammer( $user_id = 0 ) {
      

Comments are closed.