@dunc
Not recently active
-
r-a-y posted on the forum topic Site Members Loop & Variables in the group Creating & Extending: 14 years, 5 months ago
@dunc – If you want a global variable, then (surprise, surprise!) use a global variable or a define. In wp-config.php or /wp-content/plugins/bp-custom.php, you can either do this:
global $my_var;
$my_var = WHATEVER;
or:define( 'MY_VAR', WHATEVER );
Then in your page template or anywhere else, you do this:global $my_var;
if (…
[Read more]