LLMS_Post_Model::set( string|array $key_or_array, mixed $val = '' )

Setter


Description Description


Parameters Parameters

$key_or_array

(Required) Key of the property or a an associative array of key/val pairs.

$val

(Optional) Value to set the property with. This parameter will be ignored when the first parameter is an associative array of key/val pairs.

Default value: ''


Top ↑

Return Return

(boolean) true on success, false on error or if the submitted value is the same as what's in the database


Top ↑

Source Source

File: includes/abstracts/abstract.llms.post.model.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.34.0 Turned to be only a wrapper for the set_bulk() method.
3.30.3 Use wp_slash() when setting properties.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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