Skip to content

Add Custom value in wp-config.php #843

Closed

Description

@chingman

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);

Activity

  1. yosifkit commented on Aug 10, 2023

    @yosifkit
    Member

    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).

    if ($configExtra = getenv_docker('WORDPRESS_CONFIG_EXTRA', '')) {
    eval($configExtra);
    }

  2. locked and limited conversation to collaborators on Dec 12, 2023
  3. converted this issue into a discussion #874 on Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions