Skip to content

Commit

Permalink
Update wp-learn-block-bindings.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanbossenger authored Jan 31, 2025
1 parent 820048f commit f044e21
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions wp-learn-block-bindings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit f044e21

Please sign in to comment.