Support » Plugin: Variation Swatches for WooCommerce » How to disable swatches settings via custom plugin/theme

  • Resolved SpabRice

    (@spabrice)


    Hello,

    how can I change some of the settings via a custom theme or plugin?
    For example disable the default stylesheet when theme is installed/activated?

Viewing 2 replies - 1 through 2 (of 2 total)
  • HI @spabrice,

    We’ll try to remove the feature or bring filter to disable it in the coming update.
    Thank you

    SpabRice

    (@spabrice)

    Thanks for your answer.
    Meanwhile I found a way to do it:

    if (class_exists('Woo_Variation_Swatches') ) {
       $swatches = get_option("woo_variation_swatches");
       $swatches["stylesheet"] = 0;
       update_option('woo_variation_swatches',  $swatches);
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to disable swatches settings via custom plugin/theme’ is closed to new replies.