Skip to:
Content

  • Home
  • Activity
  • Members
  • reference
WB Remedy

Code Reference

  • Home
  • Activity
  • Members
  • reference
Filter by type:
Search
Browse: Home / reference / Classes / BP_Signup / BP_Signup::count_signups()

BP_Signup::count_signups()

How many inactive signups do we have?

Contents

  • Return
    • Source
  • Related
    • Uses
    • Used By
  • Changelog
  • User Contributed Notes

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 );
	}

Expand full source code Collapse full source code View on Trac


Top ↑

Related #Related

Top ↑

Uses #Uses

Uses
Uses Description
bp-members/classes/class-bp-signup.php: bp_core_signups_count

Filters the total inactive signups.

bp-loader.php: buddypress()

The main function responsible for returning the one true BuddyPress Instance to functions everywhere.

Top ↑

Used By #Used By

Used By
Used By Description
bp-members/classes/class-bp-members-admin.php: BP_Members_Admin::signup_filter_view()

Filter the WP Users List Table views to include ‘bp-signups’.


Top ↑

Changelog #Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes #User Contributed Notes

You must log in before being able to contribute a note or feedback.


See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS

Follow BuddyPress on Twitter • GPL • Contact Us • Privacy • Terms of Service

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.