jeffarrubla / wp-nonce
Class to use wp_nonce_*() functions in an object oriented way.
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jeffarrubla/wp-nonce
Requires
- php: >=5.4
Requires (Dev)
- antecedent/patchwork: 2.1.7
- phpunit/phpunit: ^5
This package is not auto-updated.
Last update: 2025-10-05 20:01:48 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