WP_User::has_prop() public WP 3.3.0
Determine 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 User::has prop WP 5.6.2
public function has_prop( $key ) {
return $this->__isset( $key );
}