JoeHana
2/2/2015 - 10:11 PM

wpCasa: Add custom content before listing content in latest listings widget

wpCasa: Add custom content before listing content in latest listings widget

<?php

/**
 * Add custom content before listing content in latest listings widget
 */

add_action( 'wpsight_widget_listing_content_before', 'custom_widget_listing_content_before' );

function custom_widget_listing_content_before() {

	echo '<a href="' . get_the_permalink( get_the_ID() ) . '">' . __( 'Button Label', 'wpsight' ) . '</a>';

}