public function generateNonceField($action)
    {
        $nonceName = $this->namespace . '_' . $action;

        return wp_nonce_field(md5($nonceName), $nonceName, true, false);
    }
public function generateNonceField($action)
    {
        $nonceName = $this->namespace . '_' . $action;

        return wp_nonce_field(md5($nonceName), $nonceName, true, false);
    }
public function generateNonceField ( $ action ) { $ nonceName = $ this -> namespace . '_' . $ action ; return wp_nonce_field ( md5 ( $ nonceName ) , $ nonceName , true , false ) ; }
Get the HTML hidden field to print in your form to protect it

@param string $action The ajax action you are referring to

@return string The HTML code to print in your form
Get the HTML hidden field to print in your form to protect it