christian / wp_nonce
There is no license information available for the latest version (v1.0) of this package.
Simple WordPress Nonce object.
v1.0
2017-06-16 12:36 UTC
Requires
- php: >=5.6
This package is not auto-updated.
Last update: 2025-06-27 23:31:23 UTC
README
WordPress Nonce object.
Table Of Contents
Installation
The best way to use this package is through Composer:
$ composer require christian/wp_nonce
Requirements
This package requires PHP 5.4 or higher.
Usage
<?php //namespace use Christian\WPNonce\Nonce; // create nonce object $nonce = new Nonce(); // getter and setter for attributes $nonce->set_attributname('attribute_content'); // get nonce url $nonce->nonce_url(); // get nonce form field $nonce->nonce_field(); // get nonce create $nonce->create(); // nonce are you sure message $nonce->ays(); // verify nonce $nonce->verify($value); // check admin referer $nonce->verify_admin(); // check ajax referer $nonce->verify_ajax(); // get nonce referer field $nonce->referer_field();
License
Copyright (c) 2017 Spiri
Contributing
All feedback / bug reports / pull requests are welcome.