public function nonceValidates($mixedNonceSalt)
    {
        $token = null;

        if ($this->hasPost("authenticity_token")) {
            $token = $this->post("authenticity_token");
        } elseif ($this->hasGet("authenticity_token")) {
            $token = $this->get("authenticity_token");
        }

        if (is_null($token)) {
            return false;
        }

        $key = $this->generateNonceKey($mixedNonceSalt);

        return wp_verify_nonce($token, $key);
    }
public function nonceValidates($mixedNonceSalt)
    {
        $token = null;

        if ($this->hasPost("authenticity_token")) {
            $token = $this->post("authenticity_token");
        } elseif ($this->hasGet("authenticity_token")) {
            $token = $this->get("authenticity_token");
        }

        if (is_null($token)) {
            return false;
        }

        $key = $this->generateNonceKey($mixedNonceSalt);

        return wp_verify_nonce($token, $key);
    }
public function nonceValidates ( $ mixedNonceSalt ) { $ token = null ; if ( $ this -> hasPost ( "authenticity_token" ) ) { $ token = $ this -> post ( "authenticity_token" ) ; } elseif ( $ this -> hasGet ( "authenticity_token" ) ) { $ token = $ this -> get ( "authenticity_token" ) ; } if ( is_null ( $ token ) ) { return false ; } $ key = $ this -> generateNonceKey ( $ mixedNonceSalt ) ; return wp_verify_nonce ( $ token , $ key ) ; }
Attempts to confirm the validation of the Wordpress nonce.
@param  string $mixedNonceSalt
@return boolean
@link https://codex.wordpress.org/Function_Reference/wp_verify_nonce
Attempts to confirm the validation of the Wordpress nonce .