• Resolved Ronaldt

    (@neejoh)


    Hi, in the main file of the plugin email-templates/email-templates.php on line 45 there is some code that is completely unnecessary and it would be great if this could be removed from the plugin. Currently it logs “new data loaded” to the browser console on every page.

    add_action( 'wp_footer', function() {
    echo '<script type="text/javascript">
    jQuery( document ).ready( function( $ ) {
    console.log( "new data loaded" );
    } );
    </script>';
    }, 1000 );

    Thanks!
    Ronald

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support muddasirhayat

    (@muddasirhayat)

    Hi @neejoh,

    Thank you for bringing this to our attention.

    You’re absolutely right; this piece of code is unnecessary and shouldn’t log into the console on every page. We appreciate you pointing it out.

    We’ll be removing this in the next update of the plugin, and you will get notified of our update soon.

    Thanks again for your helpful feedback.

    Thanks & Regards,
    WP Experts Support Team

    Thread Starter Ronaldt

    (@neejoh)

    Thanks, much appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘unnecessary console.log() in code’ is closed to new replies.