Action

directory_before_post_content

Purpose

Helpful to display or add anything above listing content on your listing detail page with your custom function. You can use it by having your function an echo output to the browser or to perform background tasks. Your functions should not return or take any parameters as it provides no parameters.

Folder Location

../wp-content/plugins/Tevolution-Directory/templates/

Used in files

single-listing.php

Example

<?php

function directory_before_post_content_ad () {

echo ‘<a href=”https://templatic.com”><img src=” https://templatic.com/demos/directory/wp-content/uploads/2013/08/728×90.jpg”></a>’;

}

add_action(‘directory_before_post_content’,’directory_before_post_content_ad’ );?>