Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
PUM_Abstract_Batch_Process::__construct( int|string $step = 1 )
Sets up the batch process.
Description Description
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
Parameters Parameters
- $step
-
(Optional) Step number or 'done'.
Default value: 1
Source Source
File: classes/Abstract/Batch/Process.php
public function __construct( $step = 1 ) { $this->step = $step; if ( has_filter( "pum_batch_per_step_{$this->batch_id}" ) ) { /** * Filters the number of items to process per step for the given batch process. * * The dynamic portion of the hook name, `$this->export_type` refers to the export * type defined in each sub-class. * * @param int $per_step The number of items to process for each step. Default 100. * @param PUM_Abstract_Batch_Process $this Batch process instance. */ $this->per_step = apply_filters( "pum_batch_per_step_{$this->batch_id}", $this->per_step, $this ); } }
Expand full source code Collapse full source code View on Trac