Skip to content

wp-env: Add support for environment variables in wp-config.php#70237

Open
Sukhendu2002 wants to merge 1 commit intoWordPress:trunkfrom
Sukhendu2002:add/wp-env-config-environment-variables
Open

wp-env: Add support for environment variables in wp-config.php#70237
Sukhendu2002 wants to merge 1 commit intoWordPress:trunkfrom
Sukhendu2002:add/wp-env-config-environment-variables

Conversation

@Sukhendu2002
Copy link
Contributor

@Sukhendu2002 Sukhendu2002 commented May 28, 2025

What?

Closes: #32515

This PR enhances the @wordpress/env package by adding support for setting wp-config.php constants via environment variables. Set any wp-config.php constant using the WP_ENV_CONFIG_ prefix.

@Sukhendu2002 Sukhendu2002 marked this pull request as ready for review May 28, 2025 12:17
@github-actions
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @reageek, @lflorent, @dorzgi.

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Unlinked contributors: reageek, lflorent, dorzgi.

Co-authored-by: Sukhendu2002 <sukhendu2002@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@t-hamano t-hamano added [Type] Enhancement A suggestion for improvement. [Tool] Env /packages/env labels May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Tool] Env /packages/env [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@wordpress/env: Add Support for Environment Variables in wp-config.php

2 participants