Last active
May 2, 2022 05:40
-
-
Save sachyya/79313336540fe86cdba42fcf588677aa to your computer and use it in GitHub Desktop.
Move default Category filter below custom filters in Typsense Search for WooCommerce
This file contains hidden or 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
<?php | |
$tmpl_hook_obj = Codemanas\Typesense\WooCommerce\Main\TemplateHooks::get_instance(); | |
remove_action( 'cm_tsfwc_filter_panel_output', [ $tmpl_hook_obj, 'category_filter' ], 5 ); //This must be 5 | |
add_action( 'cm_tsfwc_filter_panel_output', [ $tmpl_hook_obj, 'category_filter'], 18 ); // You can change the priority as per your requirement. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment