WP_User::has_prop()publicWP 3.3.0

Determines whether a property or meta key is set.

Consults the users and usermeta tables.

Method of the class: WP_User{}

No Hooks.

Return

true|false.

Usage

$WP_User = new WP_User();
$WP_User->has_prop( $key );
$key(string) (required)
Property.

Changelog

Since 3.3.0 Introduced.

WP_User::has_prop() code WP 6.6.2

public function has_prop( $key ) {
	return $this->__isset( $key );
}