Skip to content

Instantly share code, notes, and snippets.

@digitalchild
Last active July 13, 2021 01:45
Show Gist options
  • Save digitalchild/85dbbeb8dd09fa634dbd87064f89fa8b to your computer and use it in GitHub Desktop.
Save digitalchild/85dbbeb8dd09fa634dbd87064f89fa8b to your computer and use it in GitHub Desktop.
Disable mark received and order status table in WC Vendors Pro
<?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