WP_Async_Task::create_async_nonce()

Description #

Create a random, one time use token.

Based entirely on wp_create_nonce() but does not tie the nonce to the current logged-in user.

Source #

File: lib/class-wp-async-task.php

		protected function create_async_nonce() {
			$action = $this->get_nonce_action();
			$i      = wp_nonce_tick();

			return substr( wp_hash( $i . $action . get_class( $this ), 'nonce' ), - 12, 10 );
		}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment