WPIntell

Source evidence

Advanced config file

MinQueue · support · 2014-09-16T22:50:00+00:00

mixedsentiment
mediumseverity
0.84relevance
10replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

2 / 21 rows with source links

9.5% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

19 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
deltafactory resolved
The instructions mention “advanced usage” via configuration file. Is this implemented yet and if so, where would the documentation for this be? https://wordpress.org/plugins/minqueue/ 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 I see the function but not the filter. https://plugins.trac.wordpress.org/browser/minqueue/trunk/plugin.php#L70 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.

Comments

10 shown
Matthew Haines-Young 2014-09-18T16:39:00+00:00

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.

FLOQ Design 2014-09-28T08:31:00+00:00

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

deltafactory 2014-09-30T16:27:00+00:00

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

FLOQ Design 2014-10-03T08:31:00+00:00

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">

deltafactory 2014-10-09T15:10:00+00:00

You’re right. Thanks for clarifying, all.

Matthew Haines-Young 2014-10-09T15:15:00+00:00

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

deltafactory 2014-10-09T15:18:00+00:00

@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 ?

Matthew Haines-Young 2014-10-09T15:20:00+00:00

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

deltafactory 2014-10-09T15:24:00+00:00

I see the function but not the filter. https://plugins.trac.wordpress.org/browser/minqueue/trunk/plugin.php#L70

Matthew Haines-Young 2014-10-09T15:26:00+00:00

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.