I found the answer – this contains sample code which helped me resolve the issue.
Related Posts:
- How to add/retrieve the post trash link?
- How does nonce verification work?
- How to expire a nonce?
- Fatal error: Call to undefined function wp_create_nonce()
- 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 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
- wp_verify_nonce vs check_admin_referer
- Do I need a nonce field for every meta box I add to my custom post type admin?
- Can I use the same nonce for multiple requests on the same page?
- Nonces and Cache
- Multiple ajax nonce requests
- Nonce in settings API with tabbed navigation
- WordPress “Link has expired” error on updating posts
- Comments screen in backend, how to disable Quick Edit | Edit | History | Spam | for non admins
- 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
- Serving nonces through AJAX is not refreshing nonce, returning 403 error
- Security around save_post hook
- ajax and nonce when JavaScript is in a seperate file
- How to add a column to the Trash page?
- Custom Role can’t trash Custom Post Type
- wp_verify_nonce doesn’t return true on server when it matches the nonce
- Can a user with admin role get ‘Sorry, you are not allowed to move this item to the Trash’ error when trashing a post?
- Full page NGINX (or Cloudflare) caching and WordPress nonces
- Verify Nonce returns false – Request Nonce returns correct value
- Why save_post_$(custom_post_type) is fired even if I am not already saving a post?
- wp-admin AJAX with Fetch API is done without user
- How can I create a plugin installation link?
- How to untrash a post only if it was not a draft?
- Control whether or not to trash a custom post type
- Can a wp_nonce created from domain 1 to be verified on domain 2?
- Help with forms and nonces
- permission_callback has no effect
- Confusion regarding Nonce & using it in Custom Columns for Saving Checkbox Value to Post Meta
- WP REST API – Nonce passes wp_verify_nonce even after logout
- How to use update_post_meta inside wp_trash_post
- Custom post type: check permissions and validate nonce
- “The link you followed has expired” & “Error while saving” messages when adding new post
- SSO autologin WordPress + Ajax
- Is nonce in PHP form and Ajax both necessary?
- Are nonces in WP REST API optional by default?
- Nonce fails on ajax save
- Can you have more than one nonce on a page?
- Unable to successfully verify nonce
- wp_nonce_field is breaking form for reasons unknown
- Cache plugins and ajax nonce verification
- Forms and WordPress Nonce
- javascript ajax and nonce
- How to use the wpsnonce clone post link?
- wp_trash_post hook – problem with page updating if using wp_die
- Nonce failing with second argument
- Conditional tag-like function to tell if post is in trash?
- How to display “Trash” in my custom post type?
- is possible to interupt a post deletion when empty the trash
- Bulk trashing post ‘fails’
- check_admin_referer not working in custom meta box for custom post type
- Ajax Security regarding user priviliges and nonces
- wp_nonce for Front-End submission form not working
- wp_verify_nonce fails always
- custom metabox nonce verification fails
- Changing a post status name
- wp.getPosts with status = ‘trash’ using node.js
- transition_comment_status gets called when untrashing comments
- Using Nonce for my Form
- wp_trash_post not firing as expected (also applies to trashed_post)
- Saving metabox updates causing fatal error
- How to prevent users from permanently deleting a post from trash, but allow them to restore it?