BP_Signup::count_signups()
How many inactive signups do we have?
Description Description
Return Return
(int) The number of signups.
Source Source
File: bp-members/classes/class-bp-signup.php
public static function count_signups() { global $wpdb; $signups_table = buddypress()->members->table_name_signups; $count_signups = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) AS total FROM {$signups_table} WHERE active = %d", 0 ) ); /** * Filters the total inactive signups. * * @since 2.0.0 * * @param int $count_signups How many total signups there are. */ return apply_filters( 'bp_core_signups_count', (int) $count_signups ); }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |