LLMS_Abstract_Generator_Posts::add_custom_value( int $post_id, string $key, mixed $val )
Add a “custom” post meta data for a given post
Description Description
Automatically slashes JSON data when supplied.
Automatically unserializes serialized data so add_post_meta()
can re-serialize.
Parameters Parameters
- $post_id
-
(Required) WP_Post ID.
- $key
-
(Required) Meta key.
- $val
-
(Required) Meta value.
Return Return
(void)
Source Source
File: includes/abstracts/llms-abstract-generator-posts.php
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |