Skip to content

Instantly share code, notes, and snippets.

@digitalchild
Last active June 17, 2021 03:12
Show Gist options
  • Save digitalchild/6537a9da1e397a5d93f447f0d8cbc3ec to your computer and use it in GitHub Desktop.
Save digitalchild/6537a9da1e397a5d93f447f0d8cbc3ec to your computer and use it in GitHub Desktop.
remove mark received button from orders my-accounts
<?php
add_filter( 'woocommerce_my_account_my_orders_actions', 'remove_mark_received' );
function remove_mark_received( $actions ){
if (array_key_exists('wcv-mark-order-received', $actions ) ){
unset($actions['wcv-mark-order-received']);
}
return $actions;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment