On this page
WP_User::has_prop( string $key ): bool
Determines whether a property or meta key is set.
Description
Consults the users and usermeta tables.
Parameters
$keystring Required-
Property.
Return
bool
Source
File: wp-includes/class-wp-user.php. View all references
public function has_prop( $key ) {
return $this->__isset( $key );
}
Related
Uses
| Uses | Description |
|---|---|
| WP_User::__isset() wp-includes/class-wp-user.php | Magic method for checking the existence of a certain custom field. |
Changelog
| Version | Description |
|---|---|
| 3.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_user/has_prop