unable to access constants defined in snippet
-
My snippet
<?php define('MY_CONSTANT", '...'); function foo() { echo MY_CONSTANT; // doesn't work }
I had to move the define statement to wp-config.php.
but how can I make constants in snippets work?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘unable to access constants defined in snippet’ is closed to new replies.