PHP Class Post_Meta_Command, wp-cli

## EXAMPLES # Set post meta $ wp post meta set 123 _wp_page_template about.php Success: Updated custom field '_wp_page_template'. # Get post meta $ wp post meta get 123 _wp_page_template about.php # Update post meta $ wp post meta update 123 _wp_page_template contact.php Success: Updated custom field '_wp_page_template'. # Delete post meta $ wp post meta delete 123 _wp_page_template Success: Deleted custom field.
Inheritance: extends WP_CLI\CommandWithMeta
Afficher le fichier Open project: wp-cli/wp-cli

Protected Properties

Свойство Type Description
$meta_type

Méthodes protégées

Méthode Description
check_object_id ( $object_id ) Check that the post ID exists

Method Details

check_object_id() protected méthode

Check that the post ID exists
protected check_object_id ( $object_id )

Property Details

$meta_type protected_oe property

protected $meta_type