• Resolved Insect Trojan

    (@insecttrojan)


    hello how can i disable the footer comment

    <!--
    Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/
    
    Page Caching using disk: enhanced 
    
    Served from: www.insect.gr @ 2021-09-17 08:14:51 by W3 Total Cache
    -->

    add_filter( 'w3tc_can_print_comment', function( $w3tc_setting ) { return false; }, 10, 1 );

    or

    on wp-contentw3tc/config/master.php i cant find the comment

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @insecttrojan

    Thank you for your question and I am happy to assist you with this
    You should add the following code to your theme’s functions.php file
    add_filter( 'w3tc_can_print_comment', function( $w3tc_setting ) { return false; }, 10, 1 );
    Please note that this will also remove any W3 Total Cache debug info if enabled.
    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘disable the footer comment’ is closed to new replies.