Created
August 10, 2018 12:13
-
-
Save djrmom/ec309e712bdd08e8fd9ef18dfad52e07 to your computer and use it in GitHub Desktop.
facetwp replace woocommerce sort with facet sort
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
<?php | |
if ( ! function_exists( 'woocommerce_catalog_ordering' ) ) { | |
/** | |
* Output facet sort box instead of woocommerce's | |
*/ | |
function woocommerce_catalog_ordering() { | |
echo facetwp_display( 'sort' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment