Car Demon Code Docs

  1. Home
  2. Car Demon Code Docs
  3. Actions
  4. cd_before_content_action


This action is called before the content for the vehicle SRPs (Search Results Pages) and VDPs (Vehicle Display Pages).

do_action( ‘cd_before_content_action’ );

add_action( 'cd_before_content_action', 'my_before_action' );
function my_before_action() {

    $html = 'Show this before the vehicle content.';

    echo $html;


The example above will output the phrase “Show this before the vehicle content” right before the content is output.

Was this article helpful to you? Yes No

How can we help?