Summery Summery
Update post meta data by meta ID.
Syntax Syntax
Parameters Parameters
- $meta_id
-
(Required)
- $meta_key
-
(Required) Expect Slashed
- $meta_value
-
(Required) Expect Slashed
Return Return
(bool)
Source Source
File: wp-admin/includes/post.php
function update_meta( $meta_id, $meta_key, $meta_value ) { $meta_key = wp_unslash( $meta_key ); $meta_value = wp_unslash( $meta_value ); return update_metadata_by_mid( 'post', $meta_id, $meta_value, $meta_key ); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
1.2.0 | Introduced. |