WP Async Task -
MIT
跨平台
PHP
软件简介
WP Async Task 是 TechCrunch 推出的 WordPress 的异步任务插件,该插件用于
TechCrunch.com 网站。
示例代码:
<?php
class JPB_Async_Task extends WP_Async_Task {
protected $action = 'save_post';
/**
* Prepare data for the asynchronous request
*
* @throws Exception If for any reason the request should not happen
*
* @param array $data An array of data sent to the hook
*
* @return array
*/
protected function prepare_data( $data ) {}
/**
* Run the async task action
*/
protected function run_action( $data ) {}
}