epl_property_search_not_found to replace entire no results message

In Easy Property Listings when a search is performed and no results are found a message is displayed. The default message container has 2 filters that will allow you to alter the default messages title and message. However is you want to completely replace the section you can do using the epl_property_search_not_found action hook.

The action hook contains the following filters to change the default wording, visit the links below on example code to alter the words:

If you need to disable the message you can use.

How to disable the default message box

When you disable this action the above filters will not be run as they have been removed

/**
 * Disable the hook.
 */
remove_action( 'epl_property_search_not_found',  'epl_property_search_not_found_callback' );

How to add your own Listings not Found message box

Then you can add your own search results coding with links and whatever you need for you project.

/**
 * Custom no search results found message
 */
function my_no_search_results_found_message() {
	echo '<div class="my-search-results-message-container">';
	echo '<h3>Sorry no listings found here today!</h3>';
	echo '</div>';
}
add_action( 'epl_property_search_not_found', 'my_no_search_results_found_message' );