Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Matthew Haines-Young

    (@mattheu)

    You have 2 options…

    1 – you can filter the settings using the filter ‘minqueue_options’
    2 – You can define the settings as ‘MINQUEUE_OPTIONS’.

    MinQueue expecta an array of options = and here are the available keys:

    helper – bool – whether the helper is shown/hidden. Default false
    cache_dir – string – the name of the cache directory. Default ‘minqueue_cache’
    scripts_method – string – ‘enabled’ or ‘disabled’
    styles_method – string – ‘enabled’ or ‘disabled’,
    scripts_manual – array – array minify groups. Each group should be an array of script handles.
    styles_manual – array – array minify groups. Each group should be an array of style handles.

    Note that as you define a constant as an array. If you wish to do it this way, the data needs to be serialized first.

    Aren’t the options for scripts_method and styles_method ‘manual’ or ‘disabled’ ?

    Thread Starter deltafactory

    (@deltafactory)

    According to the code I think it’s “disabled” and <anything else>. ??

    I’m not so sure.
    The reason I was querying this is because I’d found some advanced minqueue settings code elsewhere which used manual as the option value – and it worked.
    Also I have tried setting scripts_method using enabled but it didn’t work.
    If you inspect the Script minification method radio in the dashboard you’ll see the code is:
    <input type="radio" id="minqueue_options_scripts_method_manual" name="minqueue_options[scripts_method]" value="manual" checked="checked">

    Thread Starter deltafactory

    (@deltafactory)

    You’re right. Thanks for clarifying, all.

    Plugin Author Matthew Haines-Young

    (@mattheu)

    Thanks @floq-design. I’ll make sure I update the readme to reflect this.

    Thread Starter deltafactory

    (@deltafactory)

    @matthew Haines-Young,

    Since you’re updating the docs.. You mention the filter minqueue_options, or is there a custom filter I’m missing (which is very likely).

    Do you mean to filter the call to get_option() via filter option_minqueue_options?

    Plugin Author Matthew Haines-Young

    (@mattheu)

    There is a function minqueue_get_options that is filterable using the minqueue_options filter

    Thread Starter deltafactory

    (@deltafactory)

    Plugin Author Matthew Haines-Young

    (@mattheu)

    My apologies – it was added here: https://github.com/mattheu/MinQueue/commit/a0adccdc5c93643695a71110faafd0fd2af8ceb0 and is available in the lastest code from github but I haven’t yet released a new version on www.remarpro.com since then.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Advanced config file’ is closed to new replies.