Black Friday sale! Get 25% off WPSP Pro! Discount automatically applied at checkout.

[Support request] Disable title links on certain pages

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Disable title links on certain pages

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18906
    Ben
    Participant

    Hi,
    I’d like to use wpsp_disable_image_link to stop image links but only on certain areas.

    Is there a way to specify which WPSP lists , or which page types the wpsp_disable_image_link is used?

    Many thanks
    Ben

    #18927
    Tom
    Keymaster

    Hi there,

    Absolutely, try this:

    add_filter( 'wpsp_disable_image_link', function( $disable, $settings ) {
        if ( 123 === $settings['list_id'] ) {
            $disable = true;
        }
    
        return $disable;
    }, 10, 2 );

    Just update 123 to the ID of the list you’re targeting.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.