PHPackages                             pebo/wp\_nonce\_helper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. pebo/wp\_nonce\_helper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pebo/wp\_nonce\_helper
======================

basic support class for wordpress nonce ussage

06PHP

Since Mar 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/petersk8/Pebo_wp_nonce_helper)[ Packagist](https://packagist.org/packages/pebo/wp_nonce_helper)[ RSS](/packages/pebo-wp-nonce-helper/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Pebo\_wp\_nonce\_helper
=======================

[](#pebo_wp_nonce_helper)

### Helper clas for handling nonces on WorPress.

[](#helper-clas-for-handling-nonces-on-worpress)

[](#)

#### **Ussage:**

[](#ussage)

to include this class in to your project:

- download or clone this project and place the file [Pebo\_wp\_nonce\_helper.php](https://github.com/petersk8/Pebo_wp_nonce_helper/blob/master/Pebo_wp_nonce_helper.php "Pebo_wp_nonce_helper.php") in to your library folder (inside your project).
- include the class in your code file:

```
include_once dirname(__FILE__).'/you_library_path/Pebo_wp_nonce_helper.php';
```

- Or using composer:

```
    composer require pebo/wp_nonce_helper=dev-master

```

- Then call methods using the formula:

```
```
Pebo_wp_nonce_helper.php::method_name($args ...)
```;
```

#### Functionality:

[](#functionality-)

Setting nonces life time:

```
```
Pebo_wp_nonce_helper.php::set_nonce_duration($time_in_secconds)
```;
```

Creating a nonce url (for a link):

```
