LLMS_Event::set_unencoded_metas( array $metas, bool $save = false )
Encode the array of metadata before setting it to the object.
Parameters Parameters
- $metas
-
(array) (Required) Associative array of metadata to update/add as key=>val pairs.
- $save
-
(bool) (Optional) If true, saves the updated metadata to the database.
Default value: false
Return Return
Source Source
File: includes/models/class-llms-event.php
protected function set_unencoded_metas( $metas, $save = false ) {
return $this->set( 'meta', wp_json_encode( $metas ), $save );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.36.0 | Introduced. |