Last active
July 13, 2021 01:45
-
-
Save digitalchild/85dbbeb8dd09fa634dbd87064f89fa8b to your computer and use it in GitHub Desktop.
Disable mark received and order status table in WC Vendors Pro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// remove status from order table | |
add_filter( 'wcv_order_table_columns', 'remove_shipping' ); | |
function remove_shipping( $columns ){ | |
unset( $columns[ 'status' ] ); | |
return $columns; | |
} | |
// Disable mark recieved system completely | |
remove_filter( 'woocommerce_my_account_my_orders_actions', array( $wcvendors_pro->wcvendors_pro_delivery, 'add_orders_list_action'), 10, 2 ); | |
remove_action( 'template_redirect', array( $wcvendors_pro->wcvendors_pro_delivery, 'mark_received' ) ); | |
remove_action( 'wp_enqueue_scripts', array( $wcvendors_pro->wcvendors_pro_delivery, 'enqueue_scripts' ) ); | |
remove_action( 'woocommerce_my_account_my_orders_column_order-status',array( $wcvendors_pro->wcvendors_pro_delivery,'print_received_text' ) ); | |
remove_action( 'wcv_orders_add_new_row', array( $wcvendors_pro->wcvendors_pro_delivery, 'print_received_text_for_vendor'), 10, 3 ); | |
remove_filter( 'woocommerce_order_item_class', array( $wcvendors_pro->wcvendors_pro_delivery, 'add_class_to_order_item'), 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment