Support » Plugin: WP-SCSS » Set default paths

  • Hi thank you for this plugin.

    Just wondering if it’s possible to set the default css/scss paths somehow with update_option(); ?

Viewing 1 replies (of 1 total)
  • Thread Starter digitalmediaperth


    Figured it out:

    //Get entire array
    $custom_wpscss_options = get_option('wpscss_options');
    //Alter the options array appropriately
    $custom_wpscss_options['scss_dir'] = '/scss/';
    $custom_wpscss_options['css_dir'] = '/css/';
    //Update entire array
    update_option('wpscss_options', $custom_wpscss_options);

    If there is a better way please let me know!

Viewing 1 replies (of 1 total)
  • The topic ‘Set default paths’ is closed to new replies.