Skip to content

Instantly share code, notes, and snippets.

@kirandash
Created August 17, 2016 05:47
Show Gist options
  • Save kirandash/93e7ec1ccb2789701fff354fc3912d0c to your computer and use it in GitHub Desktop.
Save kirandash/93e7ec1ccb2789701fff354fc3912d0c to your computer and use it in GitHub Desktop.
Add remove action via functions.php for child theme
function primrose_child_add_remove(){
remove_action( 'woocommerce_before_shop_loop', 'primrose_woocommerce_subcategories', 10 );
add_action( 'woocommerce_before_shop_loop', 'primrose_child_woocommerce_subcategories', 10 );
}
add_action('init','primrose_child_add_remove');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment