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
- nonce de sécurité invalide
- wp_verify_nonce vs check_admin_referer
- Optimize post insert and delete for bulk operations?
- Do I need a nonce field for every meta box I add to my custom post type admin?
- Custom bulk_action
- Can I use the same nonce for multiple requests on the same page?
- How to get a unique nonce for each Ajax request?
- Nonce retrieved from the REST API is invalid and different from nonce generated in wp_localize_script
- Are Nonces Useless?
- How to use nonce with front end submission form?
- Extend WordPress (4.x) session and nonce
- Nonces can be reused multiple times? Bug / Security issue?
- wp_list_tables bulk actions
- How do WordPress Nonces Work?
- Bulk term assignment for attachment taxonomies
- Nonces and Cache
- How do I create a user using the new JSON api in 4.7?
- AJAX nonce with check_ajax_referer()
- Verify nonce in REST API?
- Is wp_nonce_field vulnerable if you know the action name?
- How to implement bulk actions in my plugin?
- Using nonce in menu item
- Is it safe to assume that a nonce may be validated more than once?
- Multiple ajax nonce requests
- What is nonce and how to use it with Ajax in WordPress? [duplicate]
- WP-CLI Bulk delete posts from specific category
- Do I require the use of nonce?
- How to make custom bulk actions work on the media/upload page?
- Getting “The link you followed has expired” when adding custom post [closed]
- Should nonce be sanitized?
- Add mass action to wp-admin/users.php
- How to create bulk page and content? [closed]
- Nonce in settings API with tabbed navigation
- Using Nonces for AJAX that only retrieves data
- WordPress REST API call generates nonce twice on every call
- WordPress “Link has expired” error on updating posts
- wp_list_table bulk action button is not working – no submit
- Bulk post type conversion
- How to prevent custom fields from being cleared during a bulk edit?
- Fill post titles from post content?
- Handling nonces for actions from guests to logged-in users
- How to assign an additional/extra/second user-role to multiple users (of a specific user-role)
- How to add WordPress nonces to ajax request
- Invalid Post Type error when attempting to filter and Bulk Edit posts
- Can I verify nonce which was generated on a different WP site?
- WordPress failure when logging out
- Custom bulk action for media gallery items
- Reduce nonce lifespan
- Security – Ajax and Nonce use [closed]
- Headless WordPress: How to authenticate front end requests?
- Nonces and Ajax request to REST API and verification
- How to stop _wpnonce and _wp_http_referer from appearing in URL
- Remove bulk actions based on user role or capabilities
- Custom Fields Bulk Edit
- Bulk edit post date in wordpress
- How to mass delete one line from all posts
- How can I hook into existing WordPress Bulk actions?
- How do I limit the status options for bulk/quick edit to only Published and Draft?
- Ajax function returns -1
- Undefined index: at_nonce in custom post metabox