admin_url('admin-ajax.php'), 'nonce' => wp_create_nonce('aisp_nonce'), 'resetConfirm' => __('This will reset all settings to their defaults. Your custom bots will also be removed. Are you sure?', 'ai-scrape-protect'), 'activeIconUrl' => $plugin_url . 'images/ai-scrape-protect-active.png', 'inactiveIconUrl' => $plugin_url . 'images/ai-scrape-protect-inactive.png', 'i18n' => [ 'saved' => __('Settings saved.', 'ai-scrape-protect'), 'error' => __('An error occurred. Please try again.', 'ai-scrape-protect'), 'removed' => __('Bot removed.', 'ai-scrape-protect'), 'added' => __('Bot added.', 'ai-scrape-protect'), 'reset' => __('Settings reset to defaults.', 'ai-scrape-protect'), ], ]); } public function render_page() { if (!current_user_can('manage_options')) { return; } $options = get_option('aisp_options', []); $bot_settings = get_option('aisp_bot_settings', []); $custom_bots = get_option('aisp_custom_bots', []); $all_bots = aisp_get_bots(); $has_physical = file_exists(ABSPATH . 'robots.txt'); $categories = [ 'search_engines' => __('Search Engines', 'ai-scrape-protect'), 'ai_training' => __('AI Training', 'ai-scrape-protect'), 'ai_search' => __('AI Search & Answers', 'ai-scrape-protect'), 'general_indexing' => __('General Indexing', 'ai-scrape-protect'), 'custom' => __('Custom Bots', 'ai-scrape-protect'), ]; ?>

5.0 —


$cat_label) : ?>
render_custom_tab($custom_bots); ?>