bayodesegun/wordpress-oo-nonces

WordPress Object-Oriented Nonces

Installs: 31

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:wordpress-plugin

pkg:composer/bayodesegun/wordpress-oo-nonces

1.0.0 2017-08-30 18:54 UTC

This package is not auto-updated.

Last update: 2025-10-18 05:48:24 UTC


README

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 WP_OO_Nonces class: $nonce = new WP_OO_Nonces();

  • Access the usual Nonce functions via the instance variable, dropping the wp_ prefix where present. For example to use the wp_nonce_url() function, do something like: $out = $nonce->nonce_url(admin_url());