In my callback function (the one which output HTML for forms) of add_meta_box, I am using

wp_nonce_field( 'uniqueid', 'my_nonce' )

Now in saving function, I am using this at top to verify nonce

check_admin_referer( 'uniqueid', 'my_nonce' )

But due to this, I am getting below error as soon as I hit the Add New button
Are you sure you want to do this? (Its 403 default error message )

For now I am using wp_verify_nonce, but I don’t understand why above code is not working?
Note: I am adding this meta box to a custom post type

Read more here: check_admin_referer not working in custom meta box for custom post type


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: