PHP 클래스 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.
상속: extends WP_CLI\CommandWithMeta
파일 보기 프로젝트 열기: wp-cli/wp-cli

보호된 프로퍼티들

프로퍼티 타입 설명
$meta_type

보호된 메소드들

메소드 설명
check_object_id ( $object_id ) Check that the post ID exists

메소드 상세

check_object_id() 보호된 메소드

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

프로퍼티 상세

$meta_type 보호되어 있는 프로퍼티

protected $meta_type