WP_User::has_prop
Determines whether a property or meta key is set.
Consults the users and usermeta tables.
Method of the class: WP_User{}
No Hooks.
Returns
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() WP User::has prop code WP 7.0
public function has_prop( $key ) {
return $this->__isset( $key );
}