• Resolved Hasse

    (@hassesthlm)


    When did you insert this?!
    I like to have full control over my site and don′t like when plugins add crap in my robots.txt file. Just noticed this and the file created in the upload folder.

    Can I remove this or should I uninstall the plugin?

    Robots.txt:
    Disallow: /wp-content/uploads/wpo-plugins-tables-list.json

Viewing 2 replies - 1 through 2 (of 2 total)
  • @hassesthlm I’ll check this with our development team and update you soon.

    Thank you for your time and patience.

    • This reply was modified 2 years, 8 months ago by Harshad.

    @hassesthlm Please add the following snippet to your active child theme’s functions.php file

    add_action('after_setup_theme', 'remove_robots_txt_filter');
    
    function remove_robots_txt_filter() {
    	if (is_callable(array(WP_Optimize(), 'robots_txt'))) {
    		remove_filter('robots_txt', array(WP_Optimize(), 'robots_txt'), 99);
    	}
    }

    Then recreate the robots.txt

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unwanted behaviour’ is closed to new replies.