christian/wp_nonce 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

christian/wp_nonce

Composer 安装命令:

composer require christian/wp_nonce

包简介

Simple WordPress Nonce object.

README 文档

README

WordPress Nonce object.

Table Of Contents

Installation

The best way to use this package is through Composer:

$ composer require christian/wp_nonce

Requirements

This package requires PHP 5.4 or higher.

Usage

<?php

//namespace
use Christian\WPNonce\Nonce;

// create nonce object
$nonce = new Nonce();

// getter and setter for attributes
$nonce->set_attributname('attribute_content');

// get nonce url
$nonce->nonce_url();

// get nonce form field
$nonce->nonce_field();

// get nonce create
$nonce->create();

// nonce are you sure message
$nonce->ays();

// verify nonce
$nonce->verify($value);

// check admin referer
$nonce->verify_admin();

// check ajax referer
$nonce->verify_ajax();

// get nonce referer field
$nonce->referer_field();

License

Copyright (c) 2017 Spiri

Contributing

All feedback / bug reports / pull requests are welcome.

统计信息

  • 总下载量: 24
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2017-06-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固