Where do I add a file do hold custom configuration variables for my wordpress website ?
e.g.
$config['forbidden_users'] = array("admin", "host");
Where do I add a file do hold custom configuration variables for my wordpress website ?
e.g.
$config['forbidden_users'] = array("admin", "host");
You must be logged in to post a comment.
You can save it in functions.php. Or you can add this in wp-configs.php. But right solve is add it in funcitons.php. You have 2 ways. First you can create global variable. Second You can create function which will return array(“admin”,”host”);
You could create a global in functions.php