public function get( $args, $assoc_args ) {
		list( $object_id, $meta_key ) = $args;

		$object_id = $this->check_object_id( $object_id );

		$value = $this->get_metadata( $object_id, $meta_key, true );

		if ( '' === $value ) {
			die( 1 );
		}

		WP_CLI::print_value( $value, $assoc_args );
	}
public function get( $args, $assoc_args ) {
		list( $object_id, $meta_key ) = $args;

		$object_id = $this->check_object_id( $object_id );

		$value = $this->get_metadata( $object_id, $meta_key, true );

		if ( '' === $value ) {
			die( 1 );
		}

		WP_CLI::print_value( $value, $assoc_args );
	}
public function get ( $ args , $ assoc_args ) { list ( $ object_id , $ meta_key ) = $ args ; $ object_id = $ this -> check_object_id ( $ object_id ) ; $ value = $ this -> get_metadata ( $ object_id , $ meta_key , true ) ; if ( '' === $ value ) { die ( 1 ) ; } WP_CLI :: print_value ( $ value , $ assoc_args ) ; }
Get meta field value.

## OPTIONS

<id>
: The ID of the object.

<key>
: The name of the meta field to get.

[--format=<format>]
: Get value in a particular format.
---
default: var_export
options:
- var_export
- json
- yaml
---
Get meta field value .