diff --git a/wp-learn-block-bindings.php b/wp-learn-block-bindings.php index 661a7be..06ffb2e 100644 --- a/wp-learn-block-bindings.php +++ b/wp-learn-block-bindings.php @@ -49,25 +49,26 @@ function wp_learn_register_book_post_type() { register_post_meta( 'book', - 'book_image', + 'author', array( - 'show_in_rest' => true, 'single' => true, 'type' => 'string', - 'label' => __( 'Book Image', 'wp-learn-block-bindings' ), + 'show_in_rest' => true, + 'label' => __( 'Book Author', 'wp-learn-block-bindings' ), ) ); register_post_meta( 'book', - 'author', + 'book_image', array( + 'show_in_rest' => true, 'single' => true, 'type' => 'string', - 'show_in_rest' => true, - 'label' => __( 'Book Author', 'wp-learn-block-bindings' ), + 'label' => __( 'Book Image', 'wp-learn-block-bindings' ), ) ); + } add_filter( 'postmeta_form_keys', 'wp_learn_add_meta_to_quick_edit', 10, 2 );