How to remove Yoast SEO plugin comment from the source code
Categorized as Wordpress
Since Wodrpess version 5 and later you can remove the annoying inline HTML-comment made by Yoast seo plugin with a single line. Removing the comment doesn’t affect any performance, but keeps your code a little bit cleaner.
Add the following line at the end of the functions.php
file in your theme folder:
add_filter( 'wpseo_debug_markers', '__return_false' );
Enjoy!