PHPackages                             techcrunch/wp-async-task - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. techcrunch/wp-async-task

ActiveWordpress-plugin[Queues &amp; Workers](/categories/queues)

techcrunch/wp-async-task
========================

Run asynchronous tasks for long-running operations in WordPress

73320.6k↓13.9%75[5 PRs](https://github.com/techcrunch/wp-async-task/pulls)1PHP

Since Mar 10Pushed 7y ago38 watchersCompare

[ Source](https://github.com/techcrunch/wp-async-task)[ Packagist](https://packagist.org/packages/techcrunch/wp-async-task)[ RSS](/packages/techcrunch-wp-async-task/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (1)

TechCrunch WP Asynchronous Tasks
================================

[](#techcrunch-wp-asynchronous-tasks)

TechCrunch WP Asynchronous Tasks plugin for TechCrunch.com

Quick Start
-----------

[](#quick-start)

WP Async Task can be installed as a plugin or bundled in other plugins or a theme. The class definition is wrapped in a `class_exists` check, so it will never run the risk of being accidentally defined twice. Just make sure that the plugin file is being included somehow.

Next, you need to extend the class with your own implementation. Implementations of the class act on an arbitrary action (e.g., `'save_post'`, etc). There are three parts that **must** be present in any class extending `WP_Async_Task`:

1. A protected `$action` property
2. A protected `prepare_data()` method
3. A protected `run_action()` method

```
