It’s the bug alg_get_custom_order_statuses_from_cpt
function. Check the folder in /includes/class-alg-wc-custom-order-statuses-core.php
. This function is not solid to hanlde the bulk action.Turn back to use alg_get_custom_order_statuses
would be alright. Hope the author could resolve this issue rapidly.
/includes/class-alg-wc-custom-order-statuses-core.php
.
.
.
public function register_order_custom_status_bulk_actions( $bulk_actions ) {
// $custom_order_statuses = alg_get_custom_order_statuses_from_cpt( true ); // <-- there is the bug happend.
$custom_order_statuses = alg_get_custom_order_statuses( true ); // Turn back to deprecated(maybe) function.
foreach ( $custom_order_statuses as $slug => $label ) {
// translators: New Status.
$bulk_actions[ 'mark_' . $slug ] = sprintf( __( 'Change status to %s', 'custom-order-statuses-woocommerce' ), $label );
}
return $bulk_actions;
}
Hi @nessaviation,
Thank you for pointing out this bug. Would you please send us the error message you received in the console log or in the debug log file? As we are unable to reproduce the problem. Also, tell me the version number of the plugin, WooCommerce, WordPress, and PHP running on your site. That would be helpful.
@aa1235561, thank you for finding out the solution for this bug. We will definitely consider it. I’m reporting this to our team so that they can include the fix in the plugin. We will just need few steps to replicate this problem at our end.