jeffarrubla / wp-nonce
There is no license information available for the latest version (dev-master) of this package.
Class to use wp_nonce_*() functions in an object oriented way.
dev-master
2018-02-23 18:41 UTC
Requires
- php: >=5.4
Requires (Dev)
- antecedent/patchwork: 2.1.7
- phpunit/phpunit: ^5
This package is not auto-updated.
Last update: 2025-03-09 17:15:15 UTC
README
Class to use wp_nonce_*()
functions in an object oriented way.
These functions are:
- wp_nonce_ays()
- wp_nonce_field()
- wp_nonce_url()
- wp_verify_nonce()
- wp_create_nonce()
- check_admin_referer()
- check_ajax_referer()
- wp_referer_field()
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Prerequisites
Installing
Clone the project
git clone https://github.com/jeffarrubla/wp_nonce.git
download the zip or using composer
{
"require": {
"jeffarrubla/wp-nonce": "dev-master",
"php": ">=5.4"
}
}
Running the tests
To test that the wp_nonce_*()
functions can be called from the class.
To test install using composer, it requires:
To run the test do:
phpunit --bootstrap tests/bootstrap.php tests/WPNonceTest
or
phpunit --bootstrap tests/bootstrap.php tests/WPNonceTest --testdox