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.
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() WP User::has prop code WP 6.6.2
public function has_prop( $key ) { return $this->__isset( $key ); }