christian / wp_nonce
Simple WordPress Nonce object.
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/christian/wp_nonce
Requires
- php: >=5.6
This package is not auto-updated.
Last update: 2025-10-04 00:53:34 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.