WordPress at a glance
function is not described

WP_User::has_prop() public WP 3.3.0

Determine whether a property or meta key is set

Consults the users and usermeta tables.

{} It's a method of the class: WP_User{}

No Hooks.

Return

true|false. Null. Nothing.

Usage

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

Changelog

Since 3.3.0 Introduced.

Code of WP_User::has_prop() WP 5.7

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