WP nonce on Admin Tables
-
Ello.
I have created some admin tables within my plugin, and now I’m looking to verify it when actions are used.
How would I set the nonce for the admin table (use wp_nonce_field within the form, or use wp_create_nonce when I create the action link)?
$mynonce = wp_create_nonce(‘name-i-set’);
I do something like “&_wpnonce=$mynonce” but when I go to verify
wp_verify_nonce($_REQUEST[‘_wpnonce’], “name-i-set”) it fails.How would I go about setting the right nonce in the first place?
Google isn’t helping at all, nor are the docs.Just to note: I am checking the nonce within my table page, not the table extended class.
– Jay.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘WP nonce on Admin Tables’ is closed to new replies.