mirror of
https://gh.wpcy.net/https://github.com/wp-cli/handbook.git
synced 2026-04-27 14:29:13 +08:00
- Organize files in folders according to the desired structure - Use directory iterator to loop through all files and folders (makes generation more robust)
2.4 KiB
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)
$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.
Related
- WP_CLI\Utils\launch_editor_for_input() - Launch system's $EDITOR for the user to edit some text.
- WP_CLI\Utils\get_flag_value() - Return the flag value or, if it's not set, the $default value.
- WP_CLI\Utils\parse_str_to_argv() - Parse a string of command line arguments into an $argv-esqe variable.
- WP_CLI::confirm() - Ask for confirmation before running a destructive operation.
- WP_CLI::read_value() - Read a value, from various formats.
- WP_CLI::has_config() - Confirm that a global configuration parameter does exist.
- WP_CLI::get_config() - Get values of global configuration parameters.