WP_User::has_prop()publicWP 3.3.0

Determines whether a property or meta key is set.

Consults the users and usermeta tables.

Метод класса: WP_User{}

Хуков нет.

Возвращает

true|false.

Использование

$WP_User = new WP_User();
$WP_User->has_prop( $key );
$key(строка) (обязательный)
Property.

Список изменений

С версии 3.3.0 Введена.

Код WP_User::has_prop() WP 6.5.2

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