A WordPress plugin adds console output as follows, which I find penetrating and annoying:
add_action( 'wp_head', function() {
echo "<script type='application/javascript'>console.log('123 Free version " . FREE_VERSION . "');</script>."
}, 1 );
How to remove this? wp_ob_end_flush_all does not seem to work for this under PHP 8 (is not called). How it can be filtered by regex I already know.