Car Demon Code Docs

  1. Home
  2. Car Demon Code Docs
  3. Form Filters
  4. cd_trade_options_filter


This function can be used to modify the vehicle options on the Trade-In form.

apply_filters(‘cd_trade_options_filter’, $options );

add_filter( 'cd_trade_options_filter', 'my_trade_options', 10, 1 );
function my_trade_options( $options ) {

     $options[] = 'Turbo Charge';

     unset( $options['Cassette'] );

     return $options;

The above example will add “Turbo Charge” as a vehicle option on the Trade-In form and will remove “Cassette” as an option.

Was this article helpful to you? Yes No

How can we help?