Reply To: Hide attachment in front end


Home Forums Front End PM PRO Hide attachment in front end Reply To: Hide attachment in front end

#13224
shamim
Keymaster

add following code in your theme’s (child theme’s if any) functions.php

add_action('wp_loaded', function(){
    if( class_exists( 'Fep_Attachment') )
    remove_action('fep_display_after_message', array( Fep_Attachment::init(), 'display_attachment') );
}, 15 );