WPIntell

Source evidence

[Feature] Read configuration from config variables

WP Cron HTTP Auth 路 support 路 2021-08-17T15:35:00+00:00

mixedsentiment
mediumseverity
0.84relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

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

7 / 35 rows with source links

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

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
nowakpiotrek resolved
Hey, Are you planning to add a feature to load the configuration variables from constants defined in wp-config.php? That would be neat 馃檪 I hadn鈥檛 planned on anything like that. But if you can be more specific and let me know exactly which constants and/or what you have in mind, I certainly will consider it. Hi Jeff, OK, so here鈥檚 the use-case I have in mind for my team: We have a setup where we develop multiple projects working in a mixed env where some work is done locally, but each site ends the dev cycle on a pass-protected remote server for the client to review and accept. With the current state of the plugin, we鈥檇 need to manually install it on each deployed site and add configuration in the UI. Ideally, we鈥檇 have 2 config variables, eg WP_CRON_BASICAUTH_LOGIN and WP_CRON_BASICAUTH_PASSWORD, that setup would render the admin form inactive and the plugin configured automatically. You can see a similar approach in WP Offload SES plugin: https://deliciousbrains.com/wp-offload-ses/doc/settings-constants/ Thanks @nowakpiotrek , I will take a closer look and see about implementing for the next plugin update. Sure, let me know if you need me to test it 馃榾 Just to follow up with this. Next version (2.3) adds support for the following constants (defined in wp-config.php): WP_CRON_HTTP_AUTH_USERNAME WP_CRON_HTTP_AUTH_PASSWORD So in wp-config.php , you can do this: define('WP_CRON_HTTP_AUTH_USERNAME', 'your-http-auth-username'); define('WP_CRON_HTTP_AUTH_PASSWORD', 'your-http-auth-password'); And done. More details about this in the Installation docs . Thank you for the idea, @nowakpiotrek 馃檪

Comments

5 shown
Jeff Starr 2021-08-17T16:25:00+00:00

I hadn鈥檛 planned on anything like that. But if you can be more specific and let me know exactly which constants and/or what you have in mind, I certainly will consider it.

nowakpiotrek 2021-08-18T08:20:00+00:00

Hi Jeff, OK, so here鈥檚 the use-case I have in mind for my team: We have a setup where we develop multiple projects working in a mixed env where some work is done locally, but each site ends the dev cycle on a pass-protected remote server for the client to review and accept. With the current state of the plugin, we鈥檇 need to manually install it on each deployed site and add configuration in the UI. Ideally, we鈥檇 have 2 config variables, eg WP_CRON_BASICAUTH_LOGIN and WP_CRON_BASICAUTH_PASSWORD, that setup would render the admin form inactive and the plugin configured automatically. You can see a similar approach in WP Offload SES plugin: https://deliciousbrains.com/wp-offload-ses/doc/settings-constants/

Jeff Starr 2021-08-18T17:11:00+00:00

Thanks @nowakpiotrek , I will take a closer look and see about implementing for the next plugin update.

nowakpiotrek 2021-08-19T07:26:00+00:00

Sure, let me know if you need me to test it 馃榾

Jeff Starr 2022-01-18T21:35:00+00:00

Just to follow up with this. Next version (2.3) adds support for the following constants (defined in wp-config.php): WP_CRON_HTTP_AUTH_USERNAME WP_CRON_HTTP_AUTH_PASSWORD So in wp-config.php , you can do this: define('WP_CRON_HTTP_AUTH_USERNAME', 'your-http-auth-username'); define('WP_CRON_HTTP_AUTH_PASSWORD', 'your-http-auth-password'); And done. More details about this in the Installation docs . Thank you for the idea, @nowakpiotrek 馃檪