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: ''
Return Return
(boolean) true on success, false on error or if the submitted value is the same as what's in the database
Source Source
File: includes/abstracts/abstract.llms.post.model.php
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. |