Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to unset WooCommerce order actions. For more info see https://philkurth.com.au/articles/how-to-unset-woocommerce-order-actions/
<?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
You can’t perform that action at this time.