Hide iframe in message preview


Home Forums Front End PM PRO Hide iframe in message preview

This topic is: Not Resolved

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #45049
    air66.-admin
    Participant

    Hi

    When a user puts a link in the message box it tries to put it in an iframe.
    then on the front end it tries to display this iframe in the preview.
    is it possible to not show the iframe in the message preview?

    Thanks

    #45070
    shamim
    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.

Viewing 2 posts - 1 through 2 (of 2 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.