Manage PHP Constants

Normally the wp-config.php is used to add certain constants to make your applications run. Because wildcloud manages your wp-config.php this cannot be done. Instead, PHP constants can be managed per tenant from the console.

PHP constants are names or identifiers used to keep secrets or configurations in your tenant. The defined constants will be available in your tenant as actual PHP constants. A constant can be normal or sensitive. A sensitive constant cannot be read after adding and can only be completely overwritten.


In this documentation, we will explore steps to:


  • Create a PHP Constant
  • Update a PHP Constant
  • Delete a PHP Constant

Let’s get started🚀

Create a PHP Constant


Step 1: Log in to your wildcloud account and you will be navigated to the Applications page by default.



Step 2: Click on Go To App to navigate to the product page. 



Note: You can also click on the application name as it will navigate you to the same window.



Step 3: Click on the Tenants from the left menu of the interface.



Alternatively, you can also click on the Tenants at the bottom of the product page.



This will navigate you to the Tenants detail page where you can explore the list of tenants generated. 



Step 4: Click on the tenant name for which you want to create a PHP Constant. 



Step 5: Click on PHP Constants and then click on the + button to create a PHP constant.



Step 6: Enter the requested information in the modal window and click on the Submit button.


  • Name- Enter the name of the variable
  • Value- Define the value of the variable


The newly created PHP constant will be added to the list.


Note: If you have checked the option to make the constant sensitive, then it cannot be read after adding and can only be completely overwritten.


Update a PHP Constant


Note: You can only update the PHP variable value, not the name.


To update a PHP Constant, perform the following steps:


Step 1: Log in to your wildcloud account and you will be navigated to the Applications page by default.



Step 2: Click on Go To App to navigate to the product page. 



Note: You can also click on the application name as it will navigate you to the same window.



Step 3: Click on the Tenants from the left menu of the interface.



Alternatively, you can also click on the Tenants at the bottom of the product page.



This will navigate you to the Tenants detail page where you can explore the list of tenants generated.



Step 4: Click on the tenant name for which you want to update a PHP Constant. 



Step 5: Click on PHP Constants and a list of PHP constants will appear.



Step 6: Click on the update icon of the PHP constant that you want to update.



A modal window will appear to change the PHP variable value. Enter the “new variable value” and click on the Submit button.


Delete a PHP Constant


To delete a PHP Constant, perform the following steps:


Step 1: Log in to your wildcloud account and you will be navigated to the Applications page by default.



Step 2: Click on Go To App to navigate to the product page. 



Note: You can also click on the application name as it will navigate you to the same window.



Step 3: Click on the Tenants button from the left menu bar of the interface.



Alternatively, you can also click on the Tenants at the bottom of the product page.



This will navigate you to the Tenants detail page where you can explore the list of tenants generated.



Step 4: Click on the tenant name for which you want to delete a PHP Constant. 



Step 5: Click on PHP Constants and a list of PHP constants will appear.



Step 6: Click on the delete icon corresponding to the PHP constant that you want to delete.



A modal window will appear for the confirmation of the action. Click on the Delete button.