1. Home
  2. Car Demon Code Docs
  3. Display Filters
  4. cd_vdp_detail_output_filter

cd_vdp_detail_output_filter

This filter can be used to modify the vehicle details section on the VDP (Vehicle Display Page).

You can see this area highlighted in the image below.

apply_filters( ‘cd_vdp_detail_output_filter’, $details, $post_id );

Vehicle Details Area

add_filter( 'cd_vdp_detail_output_filter', 'my_details, 10, 2 );
function my_details( $details, $post_id ) {

    $details = '<li>Call us today!</li>' . $content;
    $details .= '<li>On Sale Today!</li>';

    return $details;
}

The example above will add an <li> tag above the details with “Call us today!” in it and another <li> tag below that says “One Sale Today!”.

NOTE: For semantic purposes you should wrap any additional content with <li> tags because this area is contained inside of <ul> tags.

Was this article helpful to you? Yes No

How can we help?