Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to unset WooCommerce order actions. For more info see
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