Used to filter meta queries for woocommerce. Queries in “prefix_postmeta “ table . Sample add_filter(‘woocommerce_product_query_meta_query’ , ‘hide_outofstock_from_best_sellers...Read More
Using woocommerce_shipping_fields hook we can edit the fields . Sample : add_filter( ‘woocommerce_shipping_fields’, ‘shippingfields’ ); function shippingfields ( $fields ) { $field...Read More
To alter all billing and shipping fields while checkout. EG: add_filter( ‘woocommerce_default_address_fields’, ‘my_default_address_fields’ ); function my_default_address_fields...Read More
In functions.php add_action( ‘pre_get_posts’, ‘query_posts_order_price’); function query_posts_order_price($query) { if ( $query->is_search ) { $query->set( ‘tax_qu...Read More
Hide ‘out of stock’ products in Woocommerce OR How to hide out of stock products using meta query in wordpress add_filter(‘woocommerce_product_query_meta_query’ , ‘hide_o...Read More
Add following code in your functions.php: function storefront_best_selling_products( $args ) { if ( storefront_is_woocommerce_activated() ) { $args = apply_filters( ‘storefront_best_selling_prod...Read More
To use best selling hook in store front end theme. use the hook with different name to already defined “function storefront_best_selling_products”: add_action( ‘homepage1’, ...Read More
First of all set image uploading plugin to categories. We have used plugin: “Category images”: https://wordpress.org/plugins/categories-images/ Then we can choose the categories from the w...Read More
Add these code to your functions.php to include a new widget for best selling products: function registering_widget() { register_widget( ‘WC_Widget_best_selling_products’); } add_action( &...Read More