Make all links in message content unclickable


Home Forums Front End PM PRO Make all links in message content unclickable

This topic is: Resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43487
    lia.spoerl
    Participant

    Hi,

    I need to make all links sent in messages unclickable.
    At the moment all external links are like this but all internal links show as clickable links.

    Could you provide a snippet for this?

    Thanks for your help.

    #43505
    Shamim Hasan
    Keymaster

    Please add following code in your theme’s (child theme’s if you are using) functions.php

    add_action( 'init', function(){
    	global $wp_embed;
    	remove_filter( 'fep_get_the_content', array( $wp_embed, 'run_shortcode' ), 8 );
    	remove_filter( 'fep_get_the_content', array( $wp_embed, 'autoembed'), 8 );
    });
    

    Let me know.

    #43508
    lia.spoerl
    Participant

    Thank, it has solved the issue.

Viewing 3 posts - 1 through 3 (of 3 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.