“_blank” target for venue link

I want the venue link to open in a new window.

I have added this filter, but doesn’t seem to work:

add_filter( 'tribe_get_event_website_link_target', '_blank', 999, 3 );

Just realised I’m getting confused between the venue link and the event link. The following has worked:

function tribe_venue_link_target() {

	return '_blank';
}
add_filter( 'tribe_get_venue_website_link_target', 'tribe_venue_link_target' );
  • This topic was modified 39 minutes ago by Chillifish.
  • This topic was modified 34 minutes ago by Chillifish. Reason: Solved

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer