Noptin_Background_Process::generate_key( int $length = 64 )

Generate key


Description Description

Generates a unique key based on microtime. Queue items are given a unique key so that they can be merged upon save.


Top ↑

Parameters Parameters

$length

(int) (Optional) Length.

Default value: 64


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/class-noptin-background-process.php

		protected function generate_key( $length = 64 ) {
			$unique  = md5( microtime() . rand() );
			$prepend = $this->identifier . '_batch_';

			return substr( $prepend . $unique, 0, $length );
		}


Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation