About

The function update_post_meta() updates the value of an existing meta key (custom field) for the specified post.

Update post meta field based on post ID. If the meta field for the post does not exist, it will be added.

Reference:

codex.wordpress.org and developer.wordpress.org

history | excerpt history