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’ ?
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">
You’re right. Thanks for clarifying, all.
Thanks @floq-design. I’ll make sure I update the readme to reflect this.
@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?
There is a function minqueue_get_options that is filterable using the minqueue_options filter
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 WordPress.org since then.