WC_Admin_List_Table_Orders::define_bulk_actions()
Define bulk actions.
Method of the class: WC_Admin_List_Table_Orders{}
No Hooks.
Return
Array
.
Usage
$WC_Admin_List_Table_Orders = new WC_Admin_List_Table_Orders(); $WC_Admin_List_Table_Orders->define_bulk_actions( $actions );
- $actions(array) (required)
- Existing actions.
WC_Admin_List_Table_Orders::define_bulk_actions() WC Admin List Table Orders::define bulk actions code WC 9.5.1
public function define_bulk_actions( $actions ) { if ( isset( $actions['edit'] ) ) { unset( $actions['edit'] ); } $actions['mark_processing'] = __( 'Change status to processing', 'woocommerce' ); $actions['mark_on-hold'] = __( 'Change status to on-hold', 'woocommerce' ); $actions['mark_completed'] = __( 'Change status to completed', 'woocommerce' ); $actions['mark_cancelled'] = __( 'Change status to cancelled', 'woocommerce' ); if ( wc_string_to_bool( get_option( 'woocommerce_allow_bulk_remove_personal_data', 'no' ) ) ) { $actions['remove_personal_data'] = __( 'Remove personal data', 'woocommerce' ); } return $actions; }