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::check_user_status()

BP_Signup::check_user_status( int $user_id )

Check a user status (from wp_users) on a non-multisite config.

Contents

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

Parameters #Parameters

$user_id

(int) (Required) ID of the user being checked.


Top ↑

Return #Return

(int|bool) The status if found, otherwise false.


Source #Source

File: bp-members/classes/class-bp-signup.php

	public static function check_user_status( $user_id = 0 ) {
		global $wpdb;

		if ( empty( $user_id ) ) {
			return false;
		}

		$user_status = $wpdb->get_var( $wpdb->prepare( "SELECT user_status FROM {$wpdb->users} WHERE ID = %d", $user_id ) );

		/**
		 * Filters the user status of a provided user ID.
		 *
		 * @since 2.0.0
		 *
		 * @param int $value User status of the provided user ID.
		 */
		return apply_filters( 'bp_core_signups_check_user_status', intval( $user_status ) );
	}

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_check_user_status

Filters the user status of a provided user ID.

Top ↑

Used By #Used By

Used By
Used By Description
bp-members/classes/class-bp-signup.php: BP_Signup::resend()

Resend an activation email.

bp-members/classes/class-bp-signup.php: BP_Signup::activate()

Activate a pending account.

bp-members/classes/class-bp-signup.php: BP_Signup::delete()

Delete a pending account.


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.