Car Demon Code Docs

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


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. */

CD_MILEAGE_GAP if defined the mileage drop down will create options between the mileage start and mileage stop in groups made up of the gap. For example, if the mileage starts a 0 and stops at 10000 and the GAP is defined as 1000 then it will create the following options to select:

Less than 1,000
Less than 2,000
Less than 3,000

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

define( 'CD_MILEAGE_GAP', '10000' );
Was this article helpful to you? Yes No

How can we help?