LLMS_Event::set_meta( string $key, mixed $val, bool $save = false )
Update/Add a single meta item.
Parameters Parameters
- $key
-
(string) (Required) Meta key.
- $val
-
(mixed) (Required) Meta value.
- $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
public function set_meta( $key, $val, $save = false ) { $all = $this->get_meta(); $all[ $key ] = $val; return $this->set_unencoded_metas( $all, $save ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.36.0 | Introduced. |