• Resolved nowakpiotrek

    (@nowakpiotrek)


    Hey,

    Are you planning to add a feature to load the configuration variables from constants defined in wp-config.php?

    That would be neat ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeff Starr

    (@specialk)

    I hadn’t 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.

    Thread Starter nowakpiotrek

    (@nowakpiotrek)

    Hi Jeff,

    OK, so here’s 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’d need to manually install it on each deployed site and add configuration in the UI.

    Ideally, we’d 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/

    Plugin Author Jeff Starr

    (@specialk)

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

    Thread Starter nowakpiotrek

    (@nowakpiotrek)

    Sure, let me know if you need me to test it ??

    Plugin Author Jeff Starr

    (@specialk)

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Feature] Read configuration from config variables’ is closed to new replies.