Last active
June 17, 2021 03:12
-
-
Save digitalchild/6537a9da1e397a5d93f447f0d8cbc3ec to your computer and use it in GitHub Desktop.
remove mark received button from orders my-accounts
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 | |
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