woocommerce_default_catalog_orderby filter-hookWC 1.0

Usage

add_filter( 'woocommerce_default_catalog_orderby', 'wp_kama_woocommerce_default_catalog_orderby_filter' );

/**
 * Function for `woocommerce_default_catalog_orderby` filter-hook.
 * 
 * @param  $option 
 *
 * @return 
 */
function wp_kama_woocommerce_default_catalog_orderby_filter( $option ){

	// filter...
	return $option;
}
$option
-

Where the hook is called

WC_Query::get_catalog_ordering_args()
woocommerce_default_catalog_orderby
woocommerce_catalog_ordering()
woocommerce_default_catalog_orderby
woocommerce/includes/class-wc-query.php 569
$orderby_value = apply_filters( 'woocommerce_default_catalog_orderby', get_option( 'woocommerce_default_catalog_orderby', 'menu_order' ) );
woocommerce/includes/wc-template-functions.php 1466
$show_default_orderby    = 'menu_order' === apply_filters( 'woocommerce_default_catalog_orderby', get_option( 'woocommerce_default_catalog_orderby', 'menu_order' ) );
woocommerce/includes/wc-template-functions.php 1479
$default_orderby = wc_get_loop_prop( 'is_search' ) ? 'relevance' : apply_filters( 'woocommerce_default_catalog_orderby', get_option( 'woocommerce_default_catalog_orderby', '' ) );

Where the hook is used in WooCommerce

Usage not found.