PHP Class Term_Meta_Command, wp-cli

## EXAMPLES # Set term meta $ wp term meta set 123 bio "Mary is a WordPress developer." Success: Updated custom field 'bio'. # Get term meta $ wp term meta get 123 bio Mary is a WordPress developer. # Update term meta $ wp term meta update 123 bio "Mary is an awesome WordPress developer." Success: Updated custom field 'bio'. # Delete term meta $ wp term meta delete 123 bio Success: Deleted custom field.
Inheritance: extends WP_CLI\CommandWithMeta
Show file Open project: wp-cli/wp-cli

Protected Properties

Property Type Description
$meta_type

Protected Methods

Method Description
check_object_id ( $object_id ) Check that the term ID exists

Method Details

check_object_id() protected method

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

Property Details

$meta_type protected property

protected $meta_type