so you need to correct your nonce field add a second pram nonce name, more information on WordPress codex here
// wp nonce field
wp_nonce_field( $action, $name, $referer, $echo );
// replace yours with below
wp_nonce_field( 'ind_pricing_table_box_nonce', 'ind_pricing_nonce' );
now verify your nonce, more info here
wp_verify_nonce( $nonce, $action );
// replace yours with below
if (!wp_verify_nonce( $_POST['ind_pricing_nonce'], 'ind_pricing_table_box_nonce' )) {
return $post_id;
}
Related Posts:
- wp is not defined error using wp.media to create a custom image uploader
- How can I move (or create another) publish button?
- Can’t publish custom post type – “You are not allowed to edit this post.”
- Publish box in CPT remove ‘edit’ link
- Modify Publish Metabox location on CPT
- Remove Custom Taxonomy Metabox from Custom Post Type Screen
- Do I need a nonce field for every meta box I add to my custom post type admin?
- How to change default position of WP meta boxes?
- Help Creating a Slideshow Custom Post Type with Custom Meta Boxes?
- Custom Taxonomy as checkbox or dropdown
- Meta Boxes: ‘admin_init’ or ‘add_meta_boxes’ hook?
- Multiple Custom Metabox Help
- How to force one column layout on custom post type edit page?
- Can you make a custom metabox field be required to save a new post?
- Why won’t my metabox data save?
- Custom Post Type – Taxonomy Dropdown Menu?
- Action hook on Edit custom post type?
- wp_dropdown_categories in custom post type with custom taxonomy
- Display content from custom meta boxes in revisions
- How can I add a column/s to wp_posts table?
- How to add meta box to backend menu page
- How to throw error to user when saving post
- How to add multiple images to a custom post type single post?
- echo value from ‘select’ field type into page template using cmb2?
- How to add multiple images to custom post type?
- Listing Pages With Checkboxes In a Metabox (and saving them)
- Changing the priority of a custom taxonomy’s metabox
- How do I remove all the metaboxes for a custom post type?
- WP_List_Table Inside Metabox Not Working on Submit
- How To Set Custom Post Type Title Without Supports
- Customize users’ capabilities to change a custom post’s post status
- wordpress plugin error handling
- Custom post type metabox array
- How can I fix those issues generated by the Themecheck plugin
- Add metabox with media uploader in a custom post type [duplicate]
- Creating a Custom Post Types dropdown in a Meta Box
- Undefined property: stdClass::$labels in general-template.php post_type_archive_title()
- Remove tabs from media uploader for a CPT
- How to programmatically create a connection with [Plugin: Posts 2 Posts] on cpt publish?
- Find callback function for custom taxonomy metabox
- Remove custom metaboxes from custom post type
- wp_generate_attachment_metadata gives me an empty array
- How to get custom metabox image field?
- Get all posts from custom post type and insert in select input as metabox
- Detect meta value changes when post is updated (post_updated)
- Best way to arrange custom post types by Attributes -> Order metabox value?
- Add pre-existing meta box to new custom post type
- Dynamic page.php template for custom post types
- Add special meta box to custom post type
- Add comments meta fields to comments metabox on post edit screen
- Removing Edit Permalink/View “Custom Post Type” areas
- Unable to save custom taxonomy terms in a custom-built metabox
- Custom field values get deleted
- Custom field being erased after autosave
- Order custom posts by a date metabox
- How to select one major category (or custom taxonomy) for a custom post type?
- How to sort CPT by custom meta value (date), and return posts month by month
- Priority of Meta Box for Custom Post Type
- How can i add a metabox to pull list of custom posts (any two) on edit or add post screen?
- WordPress metabox file upload in custom post [duplicate]
- How to add a select menu to this metabox code?
- Use Custom Post Type as Custom Field
- Saving multiple Metabox contents
- The editor has encountered an unexpected error. // TypeError: Cannot read property ‘prefix’ of null
- Cleanest way to code “Custom Write Panels/Meta Boxes”?
- Undefined index: at_nonce in custom post metabox
- Display metabox conditionally
- Using ‘strtotime’ function to convert a custom-meta-box to a date-stamp
- How to Change the Title of a Meta Box on a Specified Custom Post Type? [duplicate]
- How to save the checked boxes?
- Adding Custom Metaboxes to Custom Pages
- Full-Ajax Theme: parseJSON error while building a JSON object from a WordPress custom template
- Custom post type’s slug gets wrong when adding a custom meta box
- Metabox saving values
- Having trouble with custom post type / meta box
- Possible to add meta box to edit.php pages?
- add_meta_box: Datepicker like the one for postdate?
- How can I include meta box content when searching?
- wp_publish_post breaks permalinks
- Save or update data when custom post published
- update a post meta from a single table cell TablePress
- update custom post type meta from a shortcode
- Embed ‘New Post’ Form Inside ‘New Post’ Form
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- Calculate Repeater Meta Box Input Field Values and Display Total
- Custom metabox translation
- How to stop wordpress from mangling HTML in a metabox textarea
- How to create a repeatable / reusable divs in the metabox?
- How to add meta boxes(repeater fields) from WordPress back end?
- Displaying Meta Box Image
- Change Post Title Edit Box
- How to customize the Categories meta box to allow only one category?
- Relate two custom post type using meta box
- Custom Post Type Meta Boxes
- Hiding Metabox from Screen Options Pull Down
- Multiple information using custom post type
- How to: add option to add more checkboxes on custom post type
- How to keep a check box in custom meta box for custom post type checked by default for add new post?
- How to add multiple featured image in meta box in post editor?
- Show metabox in custom-post-template depending on taxonomy term?