user_agents as $user_agent) { $output .= "User-agent: $user_agent\n"; } // Add a single Disallow rule for all User-agents $output .= "Disallow: /\n"; // Add end comment for the block $output .= "# ---------------------------\n# END AI Scrape Protect block\n"; return $output; } } class AISP_Add_Meta_Tags { public function __construct() { add_action('wp_head', [$this, 'add_ai_meta_tags'], 1); } public function add_ai_meta_tags() { echo "\n\n"; echo '' . "\n"; echo '' . "\n"; echo "\n"; } } // Initialize both classes new AISP_Manage_Robots_Txt(); new AISP_Add_Meta_Tags();