Welcome to the batch_operations wiki!
This plugin for WordPress
is my version of Drupal Batch API.
Description
Batch API need for running long-term operation without using the function
set_time_limit
or CLI.
Long-term operation is divided into short-term sub-operations which are executed
in the order queue. Sub-operation can send a message below the progress bar.
Install
- Upload latest stable version of code https://github.com/IgorVBelousov/batch_operations/archive/master.zip.
- Unpack this archive to the
/wp-content/plugins/
directory
- Activate the plugin through the 'Plugins' menu in WordPress
- Use batch operations in your code
Use
The plugin provides two functions for the programmer.
batch_operations_notice
Function for output informational messages in admin-page the next time viewing
for the current user.
$message
- Informational message
$type
- Type of message. This parameter is responsible for the design of
the message.
There are four types of messages:
info
- Message with a blue border on the left
success
- Message with a green border on the left
warning
- Message with a yellow border on the left
error
- Message with a red border on the left
A screenshot of the results of functions:

batch_operations_start
Function for starting run batch operations.