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:
| Paremeter | Accepts | Default |
|---|---|---|
| MIN | The lowest number allowed. | 0 |
| MAX | The highest number allowed. | 999999 |
Examples:
| Tag | Result |
|---|---|
| {generate_number()} | 5843 |
| {generate_number( 10 : 20 )} | 16 |
| {generate_number( 100 )} | 2465 |
{generate_string( LENGTH : [ CHARS ] )}
Generates a random string.
Parameters:
| Paremeter | Accepts | Default |
|---|---|---|
| LENGTH | The string length of your choice. | 12 |
| CHARS | Single or comma-separated list of options. Accepts LOWERCASE, UPPERCASE, NUMBER, SPECIAL and ALL. | ALL |
Examples:
| Tag | Result |
|---|---|
| {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:
| Paremeter | Accepts | Default |
|---|---|---|
| NAMES | Single or comma-separated list of usernames of your choice. | |
| DOMAINS | Single or comma-separated list of domains of your choice. | |
| EXTS | Single or comma-separated list of extensions of your choice. |
Examples:
| Tag | Result |
|---|---|
| {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:
| Paremeter | Accepts | Default |
|---|---|---|
| NAME_LENGTH | The username length of your choice. | 12 |
| NAME_CHARS | Single or comma-separated list of options. Accepts LOWERCASE, UPPERCASE, NUMBER, SPECIAL and ALL. | ALL |
| DOMAIN_LENGTH | The domain length of your choice. | 12 |
| DOMAIN_CHARS | Single or comma-separated list of options. Accepts LOWERCASE, UPPERCASE, NUMBER, SPECIAL and ALL. | ALL |
Examples:
| Tag | Result |
|---|---|
| {generate_string( 5 : [ LOWERCASE ] : 5 : [ LOWERCASE ] )} | [email protected] |
| {generate_random_email()} | j1s34PaS-AJ8@z4pSfK_aDsjF.ksla |
| {generate_string( 5 : [ UPPERCASE ] : 4 )} | [email protected] |