BP_Messages_Notice::get_total_notice_count()
Returns the total number of recorded notices.
Description
Return
(int)
Source
File: bp-messages/classes/class-bp-messages-notice.php
public static function get_total_notice_count() {
global $wpdb;
$bp = buddypress();
$notice_count = $wpdb->get_var( "SELECT COUNT(id) FROM {$bp->messages->table_name_notices}" );
/**
* Filters the total number of notices.
*
* @since BuddyPress 2.8.0
*/
return (int) apply_filters( 'messages_notice_get_total_notice_count', $notice_count );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.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.