Posted on Leave a comment

Famous people whose names you don’t know

Maecenas venenatis dignissim posuere. Sed ut est mi. Donec sit amet luctus nulla. Proin dapibus luctus arcu sed consequat. Etiam a augue vitae urna sagittis egestas. In facilisis luctus eros et hendrerit. Sed sagittis eros ante, finibus dictum elit porta vel. Vivamus a nisl nec lacus iaculis porta. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Ut vel nunc eu nunc tempus congue.

add_filter( 'woocommerce_get_catalog_ordering_args', 'custom_woocommerce_get_catalog_ordering_args' ); function custom_woocommerce_get_catalog_ordering_args( $args ) { $orderby_value = isset( $_GET['orderby'] ) ? woocommerce_clean( $_GET['orderby'] ) : apply_filters( 'woocommerce_default_catalog_orderby', get_option( 'woocommerce_default_catalog_orderby' ) ); if ( 'random_list' == $orderby_value ) { $args['orderby'] = 'rand'; $args['order'] = ''; $args['meta_key'] = ''; } return $args; } add_filter( 'woocommerce_default_catalog_orderby_options', 'custom_woocommerce_catalog_orderby' ); add_filter( 'woocommerce_catalog_orderby', 'custom_woocommerce_catalog_orderby' ); function custom_woocommerce_catalog_orderby( $sortby ) { $sortby['random_list'] = 'Random'; return $sortby; }
Leave a Reply