handbook/references/internal-api/wp-cli-utils-report-batch-operation-results.md
Pascal Birchler 264cb131bf
Fix handbook information architecture
- Organize files in folders according to the desired structure
- Use directory iterator to loop through all files and folders (makes generation more robust)
2025-06-25 15:38:39 +02:00

2.4 KiB

WP_CLI\Utils\report_batch_operation_results()

Report the results of the same operation against multiple resources.


Usage

WP_CLI\Utils\report_batch_operation_results( $noun, $verb, $total, $successes, $failures, $skips = null )
$noun (string) Resource being affected (e.g. plugin).
$verb (string) Type of action happening to the noun (e.g. activate).
$total (integer) Total number of resource being affected.
$successes (integer) Number of successful operations.
$failures (integer) Number of failures.
$skips (null|integer) Optional. Number of skipped operations. Default null (don't show skips).
@return (void)

Internal API documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.