Function tags

Generator add-on includes several function tags to let you generate content directly in fields. You will find them inside the tags selector:

The function tags included are:

Included in AutomatorWP:

  • {generate_hash( VALUE : ALGORITHM )} to generate a hash from the given value.
    Eg: “AutomatorWP” to “e2d4b1701f5167f73042c4e5a81e448d” (MD5).
  • {generate_nonce( ACTION)} to generate a WordPress nonce.
    Eg: Generate the nonce “7b6e693266” for the action “AutomatorWP”.

Included only in the pro version of the Generator add-on (or AutomatorWP Pro):

  • {generate_number( MIN : MAX )} to generate a random number. More info.
  • {generate_string( LENGTH : [ CHARS ] )} to generate a random string. More info.
  • {generate_email( [ NAMES ] : [ DOMAINS ] : [ EXTS ] )} to generate an email from a group of options. More info.
  • {generate_random_email( NAME_LENGTH : [NAME_CHARS] : DOMAIN_LENGTH : [DOMAIN_CHARS] )} to generate a random email. More info.

{generate_number( MIN : MAX )}

Generates a random number.

Parameters:

ParemeterAcceptsDefault
MINThe lowest number allowed.0
MAXThe highest number allowed.999999

Examples:

TagResult
{generate_number()}5843
{generate_number( 10 : 20 )}16
{generate_number( 100 )}2465

{generate_string( LENGTH : [ CHARS ] )}

Generates a random string.

Parameters:

ParemeterAcceptsDefault
LENGTHThe string length of your choice.12
CHARSSingle or comma-separated list of options. Accepts LOWERCASE, UPPERCASE, NUMBER, SPECIAL and ALL.ALL

Examples:

TagResult
{generate_string( 5 : [ ALL ] )}j,H6f
{generate_string( 10 : [ UPPERCASE, NUMBER ] )}67A84NR1JS
{generate_string( 10 : [ LOWERCASE, UPPERCASE ] )}zpSfKaDsjF

{generate_email( [ NAMES ] : [ DOMAINS ] : [ EXTS ] )}

Generates an email from a group of options.

Parameters:

ParemeterAcceptsDefault
NAMESSingle or comma-separated list of usernames of your choice.
DOMAINSSingle or comma-separated list of domains of your choice.
EXTSSingle or comma-separated list of extensions of your choice.

Examples:

TagResult
{generate_email( [ ruben, irene ] : [ gmail, mail ] : [ fr, es ] )}[email protected] | [email protected]
{generate_email( [ ruben ] : [ gmail, mail ] )}[email protected] | [email protected]
{generate_email()}[email protected]

{generate_random_email( NAME_LENGTH : [NAME_CHARS] : DOMAIN_LENGTH : [DOMAIN_CHARS] )}

Generates a random email.

Parameters:

ParemeterAcceptsDefault
NAME_LENGTHThe username length of your choice.12
NAME_CHARSSingle or comma-separated list of options. Accepts LOWERCASE, UPPERCASE, NUMBER, SPECIAL and ALL.ALL
DOMAIN_LENGTHThe domain length of your choice.12
DOMAIN_CHARSSingle or comma-separated list of options. Accepts LOWERCASE, UPPERCASE, NUMBER, SPECIAL and ALL.ALL

Examples:

TagResult
{generate_string( 5 : [ LOWERCASE ] : 5 : [ LOWERCASE ] )}[email protected]
{generate_random_email()}j1s34PaS-AJ8@z4pSfK_aDsjF.ksla
{generate_string( 5 : [ UPPERCASE ] : 4 )}[email protected]