Outils pour utilisateurs

Outils du site


webdev:wordpress:plugins:yoast-seo

Yoast SEO

Override the robot meta with a Wordpress filter

  1. // We put the robot meta to noindex nofollow using a yoast filter
  2. add_filter('wpseo_robots', function()
  3. {
  4. return 'noindex, nofollow';
  5. });
  6. // Output :
  7. // <meta name="robots" content="noindex, nofollow">
webdev/wordpress/plugins/yoast-seo.txt · Dernière modification : 08/11/2017 15:56 de dolo