• Resolved johnniefolker

    (@johnniefolker)


    The plugin makes an entry in Robots.txt, duplicating the “User-agent: *” line:

    User-agent: *
    Disallow: /wp-content/uploads/wpo-plugins-tables-list.json

    I’ve added a filter to function.php, but it doesn’t help. How to make sure that the plugin does not add anything to the Robots.txt file?

Viewing 1 replies (of 1 total)
  • Plugin Contributor Venkat Raj

    (@webulous)

    @johnniefolker Add the following code to your theme’s functions.php file

    add_action('after_setup_theme', 'ab123_remove_robots_txt_entry');
    function ab123_remove_robots_txt_entry() {
    	if (function_exists('WP_Optimize')) {	
    		remove_filter('robots_txt', array(WP_Optimize(), 'robots_txt'), 99, 1);
    	}
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Robots.txt’ is closed to new replies.