LLMS_Abstract_User_Data::set( string $key, mixed $value, boolean $prefix = true )
Update a meta property for the user
Parameters Parameters
- $key
-
(string) (Required) meta key
- $value
-
(mixed) (Required) meta value
- $prefix
-
(boolean) (Optional) include the meta prefix when setting passing false will allow 3rd parties to update fields with a custom prefix
Default value: true
Source Source
File: includes/abstracts/llms.abstract.user.data.php
public function set( $key, $value, $prefix = true ) {
$key = $prefix ? $this->meta_prefix . $key : $key;
update_user_meta( $this->get_id(), $key, $value );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.2.0 | Introduced. |