Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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: and

history | excerpt history