1. Home
  2. Car Demon Code Docs
  3. Constants
  4. CAR_DEMON_ADMIN

CAR_DEMON_ADMIN

Car Demon has a wide variety of PHP constants that can be used to modify functionality.

Over time many of these constants will be turned into settings that can be adjusted on the settings page. In the meantime you can define these in your wp-config.php file right above where it says:

/* That's all, stop editing! Happy blogging. */

CAR_DEMON_ADMIN will control the settings page access without using roles.

Define with user id(s) divided by commas (if more than one). Let’s say you only want the users who ids are 1 or 3 to be able to access the Car Demon Settings page.

To do this you would add the following to your wp-config.php file:

define( 'CAR_DEMON_ADMIN', '1,3' );
Was this article helpful to you? Yes No

How can we help?