Created
January 31, 2019 23:23
-
-
Save brianpurkiss/1109d6a6d36cd47acdc24c5dd5a88d82 to your computer and use it in GitHub Desktop.
Remove a WooCommerce Action
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
// 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