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
- How to change default position of WP meta boxes?
- Custom Taxonomy as checkbox or dropdown
- Why won’t my metabox data save?
- echo value from ‘select’ field type into page template using cmb2?
- WP_List_Table Inside Metabox Not Working on Submit
- Customize users’ capabilities to change a custom post’s post status
- wordpress plugin error handling
- Add metabox with media uploader in a custom post type [duplicate]
- Undefined property: stdClass::$labels in general-template.php post_type_archive_title()
- wp_generate_attachment_metadata gives me an empty array
- Best way to arrange custom post types by Attributes -> Order metabox value?
- Removing Edit Permalink/View “Custom Post Type” areas
- Unable to save custom taxonomy terms in a custom-built metabox
- How to sort CPT by custom meta value (date), and return posts month by month
- Possible to add meta box to edit.php pages?
- How can I include meta box content when searching?
- How to create a repeatable / reusable divs in the metabox?
- How to customize the Categories meta box to allow only one category?
- How can I display my custom metaboxes on a custom post template?
- Custom Post Type with metaboxes (no content) only?
- Unable to show meta box data in frontend
- Using My-Meta-Box-Class plugin, how is ‘Date’ value stored?
- Adding dropdown select meta box to custom post type – seems restAPI is interfering
- Notice: Undefined index: error and understanding wordpress
- Trigger email send after custom post publish
- What is the best way to correlate one-to-many content-type relationships?
- Illegal offset type in get_post_type_object()?
- Is it possible to create relational metabox values in a custom post?
- Changing custom type name hides the posts
- Visual editor issue by having multiple tiny mce editors in a CPT
- Meta Query Filtering not working on Custom Meta Box using Radio Buttons
- Show Custom Post Type meta boxes only on Page Edit
- Adding Page Templates to post but it ignored it
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- Fixed values for same post translations
- Wrap meta boxes & data handling for specific post types in classes?
- Custom “radio button meta box” not saving correctly
- Meta Data for Custom Post Type not saving
- Remove “show sharing buttons” metabox Jetpack from custom post type
- Meta-Boxes for CustomPostType cause PHP Errors and Notices in “Add New” view
- custom post type metaboxes not saving
- Custom post type, have only my meta boxes
- Display Repeatable Meta Box Content
- Saving Meta Data within Custom Post Type
- Using custom post type as taxonomy
- Values from meta-box not on $_POST
- Metabox multiple custom post select -> display selected items?
- Get id from metabox dropdown
- Custom posttype content metabox
- Reusable metabox backend and frontend
- Filter posts of custom post type by meta key in (List All Section)
- How can I output WPAlchemy repeating fields meta values in my page template?
- How can I modify a custom post type and custom page template for a child theme if all content seams to be handled by theme’s ‘native’ plugin?
- Meta box data not saving
- saving dropdown menu data on custom post type
- Questions regarding add_meta_box()
- Related posts meta_query CPT
- Meta box with front-end styling
- How to retrive Custom Post Type Meta Fields in Custom WP_Query
- Cannot Save MetaBox Data in Custom Post Type
- Custom post type meta box empty after save
- Custom MetaBox : Food Menu Item Available Dates
- how to compare different timestamps in wp-query for events custom post types?
- Metaboxes inside Tab
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Create post meta box that links another post
- Show a custom post title in another custom post type in Meta box
- How to avoid duplicate posts queried from custom meta?
- Update main post with same category when creating custom post to update the modified date
- I have a random letter appearing before my content. Where to start looking for the cause?
- PHP Warning with Custom Fields
- Custom taxonomy with custom post type archive page
- Simple Data picker meta box
- Wrong post ID in meta box callback
- Metabox messes up permalink
- How to shows CPT which has specific meta key?
- Render the metabox input values as HTML
- wp_dropdown_pages doesn’t allow me to select more than one custom post type
- Delete custom post type metadata without deleting the post in admin area
- Metabox is not saving
- How to check if meta box value is false for all posts then do something based on that
- Publish post and create additional posts with same content
- Custom metabox fields not saving when limited to a certain CPT
- Not Able to Display Metabox Saved Checkbox and Selected option After Save/ Update
- Display a post count from a custom metabox selection
- Select custom post by meta value
- Make meta box appear if the previous if not empty?
- Adapting plugin for custom post type?
- Custom post type – permalink
- WP_Query arguments: Loop through custom post type – get all entries except excluded meta_key?
- How to query custom post then display sections by meta value
- Custom meta box includes
- Display div based on Group metabox selection [closed]
- Multiple posts selection [closed]
- Custom Post Type slug has the same Redirection entry