You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the best practice if I want to add / change the value inside the wp-config.php?
For example if I want to change:
/** Disable pseudo cron behavior. /
define('DISABLE_WP_CRON', true);
to
/* Disable pseudo cron behavior. */
define('DISABLE_WP_CRON', false);
I don't see DISABLE_WP_CRON already defined in wp-config-docker.php and it isn't one of the env vars in the Docker Hub readme, so I would suggest using WORDPRESS_CONFIG_EXTRA for this (you provide it arbitrary PHP code that gets evaluated as part of wp-config-docker.php).
Activity
yosifkit commentedon Aug 10, 2023
I don't see
DISABLE_WP_CRONalready defined inwp-config-docker.phpand it isn't one of the env vars in the Docker Hub readme, so I would suggest usingWORDPRESS_CONFIG_EXTRAfor this (you provide it arbitrary PHP code that gets evaluated as part ofwp-config-docker.php).wordpress/wp-config-docker.php
Lines 121 to 123 in 6e0d5ac