Home › Forums › Front End PM PRO › Add Link to a Business Listing › Reply To: Add Link to a Business Listing
January 5, 2018 at 4:23 pm
#9610
Shamim Hasan
Keymaster
Please add following code in your theme’s (child theme’s if any) functions.php
add_action( 'fep_display_after_message', function(){
echo '<a href="' . esc_url( home_url( 'business-directory/' ) ). get_the_author_meta('user_nicename') . '">' . get_the_author_meta('display_name') . '</a>';
});
It will add a link to user’s business directory in bottom of every message.