Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1063402

    With the code below it was possible to remove the debug info but somehow it is not working no more with version 4.5.2
    What do we need to change?

    add_action('init','avia_remove_debug');
    function avia_remove_debug(){
    	remove_action('wp_head','avia_debugging_info',1000);
    	remove_action('admin_print_scripts','avia_debugging_info',1000);
    }
    #1063403

    I changed 1000 to 9999999 now its working;

    add_action('init','avia_remove_debug');
    function avia_remove_debug(){
    	remove_action('wp_head','avia_debugging_info',9999999 );
    	remove_action('admin_print_scripts','avia_debugging_info',9999999 );
    }
    #1063412

    Hi,

    I’m glad glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Remove debug information from the source’ is closed to new replies.