Determines whether a property or meta key is set.
Consults the users and usermeta tables.
$keystringrequired
public function has_prop( $key ) {
return $this->__isset( $key );
}
| Version | Description |
|---|---|
| 3.3.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_user/has_prop