I’ve have had a request from the client to see if it’s possible to change the link on the WPSP thumbnail image to link to an external website, rather than the single post page for the event. They want to do this for just one event.
Is there a filter I could use to do that or is it not possible?
add_filter( 'wpsp_image_href', function( $href ) {
// 10 is the ID of the event you want to target.
if ( 10 === get_the_ID() ) {
return 'YOUR CUSTOM URL HERE';
}
return $href;
} );