-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathwp-batch-processing.php
41 lines (34 loc) · 1.17 KB
/
wp-batch-processing.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/*
Plugin Name: WP Batch Processing
Plugin URI: https://github.com/gdarko/wp-batch-processing
Description: Batch Processing for WordPress. Imagine you have to send custom emails to a lots of users based on some kind of logic. This plugin makes batch tasks easy.
Version: 1.1.3
Author: Darko Gjorgjijoski
Author URI: https://darkog.com
License: GPL-2+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/
if ( ! defined( 'ABSPATH' ) ) {
die;
}
if ( ! is_admin() ) {
return;
}
if ( ! defined( 'WP_BP_PATH' ) ) {
define( 'WP_BP_PATH', plugin_dir_path( __FILE__ ) );
}
if ( ! defined( 'WP_BP_URL' ) ) {
define( 'WP_BP_URL', plugin_dir_url( __FILE__ ) );
}
require_once 'includes/class-bp-helper.php';
require_once 'includes/class-bp-singleton.php';
require_once 'includes/class-batch-item.php';
require_once 'includes/class-batch.php';
require_once 'includes/class-batch-processor.php';
require_once 'includes/class-batch-ajax-handler.php';
require_once 'includes/class-batch-list-table.php';
require_once 'includes/class-batch-processor-admin.php';
WP_Batch_Processor::boot();
// Examples
// require_once 'examples/class-example-batch.php';