LLMS_Abstract_User_Data::set( string $key, mixed $value, boolean $prefix = true )

Update a meta property for the user

Parameters Parameters


(string) (Required) meta key


(mixed) (Required) meta value


(boolean) (Optional) include the meta prefix when setting passing false will allow 3rd parties to update fields with a custom prefix

Default value: true

Top ↑

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 );

Top ↑

Changelog Changelog

Version Description
3.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.