BP_Signup::count_signups()
How many inactive signups do we have?
Description
Return
(int) The number of signups.
Source
File: bp-members/classes/class-bp-signup.php
516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 | 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 BuddyPress 2.0.0 * * @param int $count_signups How many total signups there are. */ return apply_filters( 'bp_core_signups_count' , (int) $count_signups ); } |
Changelog
Version | Description |
---|---|
BuddyPress 2.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.