How to unset WooCommerce order actions. For more info see https://philkurth.com.au/articles/how-to-unset-woocommerce-order-actions/
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_order_actions', function ( $actions ) { | |
// Unset whatever actions you don't need available in the | |
// WooCommerce order edit screen. | |
unset( $actions['send_order_details_admin'] ); | |
unset( $actions['send_order_details'] ); | |
unset( $actions['regenerate_download_permissions'] ); | |
return $actions; | |
}, 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment