『 This site is optimized with the Yoast WordPress SEO plugin 』を消したい!
Yoast SEOはかなり便利で仕事でもプライベートでも愛用しています。
使用していて気になったのが、下記のコメントで出力
<!-- This site is optimized with the Yoast SEO plugin vXX.X - https://yoast.com/wordpress/plugins/seo/ -->
<!-- / Yoast SEO plugin. -->
この 『Yoast SEOがこちらを種直してますよっ!キリッ( • ̀ω•́ )』が、うざったいので消したいので消す方法をメモします。
解決方法
functions.phpに追記すれば出力を停止できます。
functions.php
/**
* yoast seoのコメント(This site is optimized with the Yoast WordPress SEO plugin) を出力させない
*/
add_filter( 'wpseo_debug_markers', '__return_false' );

はる
これで、きれいになったねぇ〜っ
以上です