In order for the nonce verification to work, I needed to replace this:
wp_verify_nonce( wp_unslash( $shared_post_data['lot_edit_nonce'] ), plugin_basename( __FILE__ ) )
with this:
wp_verify_nonce( wp_unslash( $shared_post_data['_wpnonce'] ), 'bulk-posts' )
Related Posts:
- How does nonce verification work?
- How to expire a nonce?
- How to verify nonce from Bulk/Quick Edit in save_post?
- Fatal error: Call to undefined function wp_create_nonce()
- How to add/retrieve the post trash link?
- Using nonce external of WP Admin
- Nonce best practices: hidden input vs. wp_localize_script?
- “The link you followed has expired” when previewing a post
- wp_verify_nonce keeps failing
- Handling nonce generation in AJAX registration process
- increase nonce lifespan
- wp_verify_nonce() via REST always returns false
- Nonce failing in IE
- my theme breaks WP export
- Why am I getting a 403 from check_admin_referer()?
- x-wp-nonce across domains
- wp_create_nonce doesn’t verify when using WP_List_Table
- Handling expired nonces
- What is really “wp_nonce_field” and how does it work? [duplicate]
- Cannot verify nonce
- wp_verify_nonce return false despite correct parameter passed
- WordPress JSON API nonces and Vue development server
- Verify a nonce in Form submission
- phpcs error in WordPress
- Stop WordPress nonces expiring
- Several nonces?
- Nonce for Trashing Item
- Nonce keeps failing
- Public posts – preventing duplicate form submissions
- How to obtain “wp_rest” nonce for WP Statistics plugin manually?
- WordPress “nonce” message
- CSP nonces with Cloudflare Workers
- Why are nonces working in Firefox but not in Chrome?
- wp_verfy_nonce keeps giving false
- Nonce – reissue with ajax poll
- wp_nonce_url generating invalid links
- How to insert wp_nonce field within echoed string
- Nonce check causing issues when creating new post
- Weird nonce validation problem
- Logout button in menu without “wp” in links
- Nonces can be reused multiple times? Bug / Security issue?
- Bulk term assignment for attachment taxonomies
- Using nonce in menu item
- Should nonce be sanitized?
- WordPress REST API call generates nonce twice on every call
- Custom bulk action for media gallery items
- How to hook in to bulk trash posts
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- How to remove bulk edit options
- cron job to auto delete posts of a specific post type older than x days
- Properly applying nonce to a form using AJAX
- WordPress password reset – why post rp_key?
- How to edit multiple post with Custom fields
- Nonces, AJAX, script variables & security in WordPress
- Why does WordPress Heartbeat login not refresh the nonces?
- When must I use and verify nonce?
- What SQL / WordPress queries would need a nonce?
- How to bulk Edit Dates in Media Library?
- Creating bulk posts with Youtube videos
- Identical wp_rest nonce returned from rest_api
- WP nonce invalid
- How do i change page template in bulk?
- New users not showing up in Post -> Edit
- Bulk delete users from a csv list
- wp_create_nonce function doesn’t work inside a plugin?
- Nonce failing on form submission
- Draft preview and customize permission problems on multisite main site
- Why ajax doesn’t work on certain wordpress hooks and reload the page instead?
- Why ajax doesn’t work on certain wordpress hooks?
- Custom login doesn’t work properly
- How to assign posts without any category to the default category
- `bulk_edit_custom_box` mess the input fields
- Bulk update all posts from plugin settings screen
- wp_nonce_field displaying twice
- Is it safe to use a global wp nonce per user instead of a nonce per action?
- UWooCommerce – add cart discount programmatically?
- Rest API: wp_verify_nonce() fails despite receiving correct nonce value
- Backbone with custom rest endpoints
- Replace a character in all post titles and slugs
- Restrict Access without Creating Users
- Using nonce when loading posts with AJAX
- SQL Bulk Move old posts by one author to another category
- Is the bulk_action hook stable for use in 3.2.X?
- Downloading File via headers doesnt work
- Log in user using WordPress REST API
- WP_List_Table Inside Metabox With Bulk Actions Not Working on Submit
- How do I mitigate replay attacks when talking about actions that shouldn’t happen twice?
- How can I verify WordPress nonce from the following code?
- AJAX form not working, still reloads on submit
- Register rest field authentication with REST API
- How to delete all posts with dead image urls?
- Publish post and create additional posts with same content
- when saveing $meta_box i get Undefined index error
- bulk deleting empty items in the media library
- How can i edit all posts slug in bulk keeping WP native redirect?
- WordPress Automated Posts Creation
- How to add a nonce check correctly to this specific code?
- Is Nonce Verification (CSRF) required for WordPress Custom Bulk User Actions?
- Nonce validation in REST API
- $_GET[”] variable with nonce verification