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.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/abstracts/llms-abstract-generator-posts.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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