How to use?
You can access all the global configurations from the WordPress admin interface. However, if you want to ensure that some of these configurations remain constant, you can make use of global constants.
Note
It is important to note that these global constants must be set in your project's wp-config.php
file.
Typically, these constants are used for storing sensitive data such as API keys, passwords, etc. Therefore, it is recommended to use secrets or any other secure method to store them.
Caution
If you set a global constants you will not be able to change it from the WordPress admin.