Generate a large number of dummy actions with Action Scheduler.
Append ?as_generate_actions=true
to an admin page to generate actions.
Additional parameters available:
(string)'as_action_type'
: Type of action to create. Can beasync
,single
,cron
orrecurring
. Defaultasync
.(int)'as_start_time'
: Unix timestamp representing time to run the action, or in the case of Cron actions, time to schedule the first instance at or after. Not used forasync
actions. Default current time.(string)'as_start_date'
: MySQL formatted date/time string in UTC timezone representing the time to run the action, or in the case of Cron actions, time to schedule the first instance at or after. Not used forasync
actions. Ignored if'as_start_time'
is used. Defaults current date/time.(string)'as_hook'
: String to use as the action's hook. Default'as_test_{$action_type}_action'
.(string)'as_group'
: Group for the actions. Default'as_test_{$action_type}_actions'
.(int)'as_sleep_time'
: Optional amount of time to sleep when the action runs. Only works if using default hook value. Default0
.(int)'as_action_count'
: Number of actions to create. Default100
.(int)|(string)'as_recurrence'
: Recurrence for recurring and cron actions.- For a recurring action, this should be an
int
representing number of seconds between each recurrence. Default, every 12 hours:43,200
. - For a cron action, this should be an
string
representing the cron schedule. Default, every 12 hours:'0 */12 * * *'
.
- For a recurring action, this should be an
Append the following suffixes to /wp-admin/?as_generate_actions=true
to create:
- 1,000 Async actions:
&as_action_count=1000
- Single actions with hook
'my_test_action'
:&as_action_type=single&as_hook=my_test_action
- Cron actions that run every hour:
&as_action_type=cron&as_recurrence=0+*+*+*+*
- Recurring actions run an hour apart:
&as_action_type=recurring&recurrence=3600
- Actions to run 1st January 2020 by time:
&as_start_time=1577836800
- Actions to run 1st January 2020 by date:
&as_start_date=2020-01-01+00%3A00%3A00
To install:
- Download the latest version of the plugin here
- Go to Plugins > Add New > Upload administration screen on your WordPress site
- Select the ZIP file you just downloaded
- Click Install Now
- Click Activate
To keep the plugin up-to-date, use the GitHub Updater.
If you find an problem or would like to request this plugin be extended, please open a new Issue.