I need to do something specific in my save_post
callback for bulk and/or quick edits, so how do I check the nonce for that? I can only find _wpnonce
in the edit.php
html source, but can’t find an action to match it with. I also tried check_admin_referrer()
(no arguments) but it fails.
- What nonce whould I check for? OR
-
Should I check for something else in
save_post
to know it’s being fired from aa. bulk edit or
b. quick edit action? I read that
DOING_AJAX
is there for quick edit, but is that enough on its own? what about for bulk edit?
2 Answers
It’s inlineeditnonce
. Check line 1185 of admin-ajax.php
for details.