Call to undefined function WP_CLI\Utils\report_batch_operation_results
-
I am using wp cli php library and this class Widget-command is thrwing an error when calling :
Utils\report_batch_operation_results( ‘widget’, ‘delete’, count( $args ), $count, $errors );
The exact error is :
PHP Fatal error: Uncaught Error: Call to undefined function WP_CLI\Utils\report_batch_operation_results() in …\vendor\wp-cli\widget-command\src\Widget_Command.php:364I do have the Util namespace, with the function report_batch_operation_results, I suspect the call to the namespace which may cause the issue.
Could you help please.
The page I need help with: [log in to see the link]
The topic ‘Call to undefined function WP_CLI\Utils\report_batch_operation_results’ is closed to new replies.