Description:
WP Asynchronous Tasks is a plugin by TechCrunch, built for TechCrunch.com, that lets developers run WordPress actions asynchronously. It can be installed as a plugin or bundled inside other plugins or a theme. The class definition is wrapped in a class_exists check, so there is no risk of the class being accidentally defined twice, as long as the plugin file is included somehow.
The library is aimed at developers who need to extend the WP_Async_Task class with their own implementation. Each implementation acts on an arbitrary action, such as save_post, and must contain three parts: a protected $action property, a protected prepare_data() method, and a protected run_action() method. The $action property sets the action to which the asynchronous task attaches. prepare_data() receives the hook data as an indexed array and returns the data in a more useful format, and since the values are sent in a POST request, scalar values are advisable. To cancel a task, the method can throw an exception, which the library catches to prevent the request from running.
run_action() is responsible for triggering the functions that need to run inside the asynchronous request, with the convention being to use wp_async_ followed by the action name. Developers should instantiate their asynchronous task once, no earlier than the plugins_loaded action.
The vendor’s own page for WP Asynchronous Tasks has the full details.
Main Features of WP Asynchronous Tasks:
- Can be installed as a plugin or bundled into other plugins or a theme
- Class definition is wrapped in a class_exists check so it cannot be accidentally defined twice
- Extend the WP_Async_Task class with a protected action property, a prepare_data method, and a run_action method
- Attach asynchronous tasks to arbitrary actions such as save_post
- prepare_data returns the action data as an array suited for a POST request
- Throw an exception in prepare_data to cancel the task, and the library catches it and prevents the request from running
- Instantiate the task once, no earlier than the plugins_loaded action
EffectIO members receive updates through the managed update channel. Install the EffectIO Connect plugin on your site and it handles activation, updates and licensing automatically.
Need a dashboard view of all your EffectIO assets? The EffectIO Dashboard shows what is installed, what is licensed, and what has an update available.
The 1.0 version stays on this update channel for the subscription year.











Reviews
There are no reviews yet.