Skip to content

Commit 18e25fb

Browse files
committed
refactor: use generic environment variable example to avoid confusion
1 parent 3148ae5 commit 18e25fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/php/inc/helpers/generic.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
* Define Globals for within Theme.
88
*/
99
function define_theme_globals() {
10+
// Define your own site-specific environment variables here.
1011
// phpcs:ignore
11-
define( 'GOOGLE_API_KEY', $_SERVER['GOOGLE_API_KEY'] ?? '' );
12+
define( 'CUSTOM_ENVIRONMENT_VARIABLE', $_SERVER['CUSTOM_ENVIRONMENT_VARIABLE'] ?? '' );
1213
}
1314
add_filter( 'init', 'define_theme_globals' );
1415

0 commit comments

Comments
 (0)