Remove the Yoast SEO Comments From the Page Source
Stops Yoast SEO from wrapping its meta tags in "This site is optimized with the Yoast SEO plugin" HTML comments. The tags themselves stay.
Opens WPIDE on
Code
add_filter( 'wpseo_debug_markers', '__return_false' );
Notes
Only the comments are removed; titles, meta descriptions and schema are untouched.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.