Stop worrying about the potholes in the road and enjoy the journey

Wydanie Botoscope v.1.0.5

  • dodano 2 hooki
  • add_filter('botoscope_get_product_meta', function ($meta_rows, $product_id) {
    	$hertz_meta_id = 1;
    
    	foreach ($meta_rows as $key => $row) {
    		$row_meta_id = isset($row['meta_id']) ? $row['meta_id'] : $row['id'];
    
    		if (intval($row_meta_id) === $hertz_meta_id) {
    			$apprx_hertz = get_post_meta($product_id, 'apprx_hertz', true);
    			if ($apprx_hertz !== '') {
    				$meta_rows[$key]['value'] = floatval($apprx_hertz);
    			}
    		}
    	}
    
    	return $meta_rows;
    }, 10, 2);
  • add_action('botoscope_product_meta_updated', function ($product_id, $meta_id, $field_key, $value) {
        if (intval($meta_id) === 1) {
            update_post_meta($product_id, 'apprx_hertz', $value);
        }
    }, 10, 4);
  • dodano nową opcję: Ukryj produkty niedostępne - "Produkty niedostępne nie będą widoczne ani synchronizowane z Telegramem"
  • linki t.me zmieniono na telegram.me

 

0

You might also like

Awesome! 
Error!