Skip to content

Instantly share code, notes, and snippets.

@brianpurkiss
Created January 31, 2019 23:23
Show Gist options
  • Save brianpurkiss/1109d6a6d36cd47acdc24c5dd5a88d82 to your computer and use it in GitHub Desktop.
Save brianpurkiss/1109d6a6d36cd47acdc24c5dd5a88d82 to your computer and use it in GitHub Desktop.
Remove a WooCommerce Action
// Add the action
add_action('init','sample_remove_product_meta');
// Declare the function
function sample_remove_product_meta() {
remove_action('woocommerce_single_product_summary','woocommerce_template_single_meta',40);
}
// First item in remove_action is the hook
// Second item in remove_action is what was hooked
// Third item is the priority. Make sure the priority of the remove_action is the same as the original
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment