Home › Forums › Pro Support › Filter to Change Image Link › Reply To: Filter to Change Image Link
June 6, 2019 at 4:53 pm
#9764
Keymaster
Hi Ben,
This should be possible.
For example:
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;
} );