LeoLopesWeb
5/26/2019 - 8:58 PM

remove a action do tema pai

add_action( 'init', 'remove_my_action');
function remove_my_action() {
     remove_action( 'flatsome_category_title', 'flatsome_add_category_filter_button', 20 );
}

if ( ! function_exists( 'flatsome_add_category_filter_button' ) ) {
	function flatsome_add_category_filter_button() {
		wc_get_template_part( 'loop/filter-button' );
	}
}
add_action( 'flatsome_category_title_alt', 'flatsome_add_category_filter_button', 20 );