Support » Plugin: The SEO Framework – Fast, Automated, Effortless. » Disabling a file robots.txt

  • This plugin generates its robots.txt but I have another plugin that does it, in my opinion, better. How do I disable this feature in this plugin?
    p.s. The second plugin I use is called Clearfy Pro

Viewing 1 replies (of 1 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hello!

    This filter will disable TSF’s robots.txt manipulation.

    add_action(
    	'the_seo_framework_after_init',
    	function() {
    		remove_filter( 'robots_txt', [ tsf(), 'robots_txt' ] );
    	}
    );

    (Where do I place filters?)

    If the authors of Clearfy also believe its robots.txt output is superior, they could always increase its priority number and remove what has been written. That’d make the filter I shared above obsolete.

    However, I disagree with filling robots.txt any more than TSF does. Here are Yoast’s arguments, which I support: https://yoa.st/robots-txt

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.