Answers for "validate ajax nonce request wordpress"

0

validate ajax nonce request wordpress

function custom_php_ajax_function() {
     // Check for nonce security      
     if ( ! wp_verify_nonce( $_POST['nonce'], 'ajax-nonce' ) ) {
         die ( 'Busted!');
     }
 }
Posted by: Guest on September-24-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language