bayodesegun/wordpress-oo-nonces
Composer 安装命令:
composer require bayodesegun/wordpress-oo-nonces
包简介
WordPress Object-Oriented Nonces
README 文档
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_Noncesclass:$nonce = new WP_OO_Nonces(); -
Access the usual Nonce functions via the instance variable, dropping the
wp_prefix where present. For example to use thewp_nonce_url()function, do something like:$out = $nonce->nonce_url(admin_url());
统计信息
- 总下载量: 31
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-08-30