Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Filter to Change Image Link Reply To: Filter to Change Image Link

#9764
Tom
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;
} );