Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/bayodesegun/wordpress-oo-nonces/archive/refs/heads/master.zipOn Packagist as bayodesegun/wordpress-oo-nonces:
composer require bayodesegun/wordpress-oo-noncesNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Wordpress Object-Oriented Nonces
The Wordpress Objected-Oriented Nonces is a plugin that facilitates the use of Wordpress nonces in a object-oriented fashion, by providing a class with functions that implement the original nonce-related function.
Installation
Production installation (without test files)
composer require bayodesegun/wordpress-oo-nonces "~1.0.0"
Development installation (with test files)
composer require bayodesegun/wordpress-oo-nonces "dev-master"
Usage
From any part of WordPress, instantiate a new WPOONonces class: $nonce = new WPOONonces();
Access the usual Nonce functions via the instance variable, dropping the wp prefix where present. For example to use the wpnonceurl() function, do something like: $out = $nonce-nonceurl(adminurl());
Releases
1 release.
Tag
Published
1.0.0
latest
Aug 30, 2017 9 years ago
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.