Set On Sale Reclar Peeler FR

0.0/5
<?php
function filter_woocommerce_product_is_on_sale( $on_sale, $instance ) { 
    
	if ( get_site_url() == 'https://reclar.fr' ) {
    if (  $instance->get_id() == "3836" ) {
     $on_sale = true;
    }
     return $on_sale; 
  	}
	
   
}; 

add_filter( 'woocommerce_product_is_on_sale', 'filter_woocommerce_product_is_on_sale', 10, 2 ); 

Comments and reviews

{{ reviewsTotal }} Review
{{ reviewsTotal }} Reviews
{{ options.labels.newReviewButton }}
{{ userData.canReview.message }}

Description

This snippet was fetched automatically from WPDistro.cz projects.

Author

Tags

This snippet is untagged