You’re update function asks for a request parameter named meta_box_nonce
(which is by the way a bad name) but your meta box template does not provide such a field.
It should work if you add the following line right at the end of your function author_book_meta_box()
:
wp_nonce_field( 'author_book_meta_box_nonce', 'meta_box_nonce' );
Please consider to prefix the request parameter name meta_box_nonce
. E.g. your_plugin_meta_box_nonce
to avoid collisions with other plugins.
Related Posts:
- Passing error/warning messages from a meta box to “admin_notices”
- How to HIDE everything in PUBLISH metabox except Move to Trash & PUBLISH button
- Removing panels (meta boxes) in the Block Editor
- How can I create a taxonomy meta-box with search suggestions but no new terms input?
- How Does WordPress Remember Metabox Positions?
- How to Add Reminders/Notes to New Post Meta Boxes
- How to reorder meta box position?
- Custom Meta Boxes: multiple fields within a repeatable field
- How to group meta boxes on the post edit page
- Metabox date month number to word
- get registered metaboxes by post type or post ID
- Remove metabox from specific page template in admin
- Is there a filter/action to add content to WP admin metaboxes?
- Attach Files Metabox
- How do I create a meta box for dates?
- esc before saving or before displaying does it matter?
- Add a meta description to home page?
- how to sanitize checkbox input?
- Set height of the categories meta box in post dashboard
- Add template meta box to category edit page?
- Get image captions for images on gallery post format metabox
- Multiple Checkboxes Metabox
- Adding Metaboxes – so much code is there a shorter DRY way?
- Consolidate Metaboxes into 1 Big Metabox
- I need a Simple image uploader with a simple screen. WP default has too many options.
- Show or hide custom meta box not work with Gutenberg
- TinyMCE with custom buttons on a meta box
- How do i hide the auto-generated custom field that’s created when update_post_meta() is called?
- Set the default value as checked for a meta box checkbox
- How to search by metadata using REST API
- Display oembed in repeatable metaboxs using CMB2
- Automatically add a tag according to custom metadata
- How to add categories to page editor?
- Having trouble getting my meta data to save
- Display meta box on front end
- Show how many images are attached to a post/page on compose page
- Metabox context for page post type
- How to use MarkDown in a custom textarea field?
- Populate meta select box with child pages
- Problem with meta box in Links
- Post Meta not saving when have empty post
- Remove ShareDaddy meta box from Pages only
- On click hide group of metabox, similar to screen options checkbox?
- How to make a stand-alone button to the post edit view
- Custom Meta box only returns most recent value on page
- Display Term Metabox Only On Certain Term Edit and Add Pages In Admin
- How to prevent further updates of custom meta when using actions to set one meta based on another
- Stop saving process when metabox is invalid [duplicate]
- how can i do metabox [closed]
- How to add meta box for image upload using WordPress media uploader?
- why add_menu_page use simple function as arg while add_meta_box a call back?
- List all sidebars in metabox
- Output from Meta Box Array
- How to show the value of specific key from nested array?
- Parse a text area custom meta box and assign as value to existing meta keys
- WordPress global variables?
- Getting metabox value?
- I have added a metabox and inside it i added a secondary title and a text editor but if i write anything it does not save it or show it on my page
- Hide Page Title with Post Meta
- How many meta-query fields support WordPress search at a time?
- Meta box does not save or update
- WP admin display custom field if another field value is “Female”
- Show button if meta box has content, else hide
- Post Excerpt field only showing for default administrator
- Is ‘repeatable’ a field type for meta boxes?
- Checkbox in post not saving value
- Custom loop attached to link
- post meta – problem : copy the same meta for all the articles
- ACF – Hiding metaboxes through screen settings doesn’t work
- Remove Username and just show Name in Author Metabox in backend
- how can I make this metabox area
- get_post_meta giving errors while creating a metabox
- how to Add Meta Box with featured image settings and To Edit Post Screen For Inline Styles (css box)?
- Metabox not saving values
- Update Post Meta in Front End with a form
- get_post_meta not working on my custom-function page
- Metabox with checkbox is not working true!
- Featured Gallery to custom post type
- Displaying a Metabox linked to post settings for all users
- Can’t get meta values to save
- Unable to save multiple images in wordpress
- Custom WP Meta Box – Use data from within the post screen inside meta box
- How Add a Save Button to Custom Meta Box without Leave/Stay js Dialog?
- How to show select_advanced content instead of ID?
- Removing Meta Generator
- Error when adding Meta Boxes, but only when adding 3 with the same callback
- Using Meta Boxes in a Custom Page Template
- A correct hook for saving meta boxes data
- update_post_meta does not work
- Hooking into the Meta Boxes (Name/Web Address/Description) on the ‘Add New Link’ Page
- Custom carousel with meta box data
- when saveing $meta_box i get Undefined index error
- Adding a Custom ‘Now’ button under ‘Published on’ header to return current date and time
- Adding meta boxes to custom post type
- Meta boxes not showing up
- Custom metabox with App Store / Google Play links
- How do I create a Meta box that can be repeated? (with an image section and text area)
- How can i remove blank area caused by theme’s post meta boxes?
- Need help, Passing variables with get_post_meta
- My meta box don’t want to save value