is_connected(); $bing_on = ( new AWBSEO_Bing() )->is_connected(); if ( $gsc_on && $bing_on ) { /* translators: GSC = Google Search Console */ $status_label = __( 'GSC & Bing connected', 'adworksbid-seo' ); } elseif ( $gsc_on ) { /* translators: GSC = Google Search Console */ $status_label = __( 'GSC connected', 'adworksbid-seo' ); } elseif ( $bing_on ) { $status_label = __( 'Bing connected', 'adworksbid-seo' ); } else { $status_label = ''; } ?>

Physical robots.txt detected. A robots.txt file exists at %s. WordPress serves that file directly, so changes made here will have no effect until you delete or rename the physical file.', 'adworksbid-seo' ), [ 'strong' => [ 'style' => true ], 'code' => [] ] ), esc_html( ABSPATH . 'robots.txt' ) ); ?>

User-agent:, Disallow:, Allow:, and Sitemap: directives. Lines starting with # are comments.', 'adworksbid-seo' ), [ 'code' => [] ] ); ?>

$preset ) : ?>

' . esc_html__( 'Could not fetch - check again after saving.', 'adworksbid-seo' ) . '';
                    ?>

GPTBotOpenAI
ChatGPT-UserOpenAI
CCBotCommon Crawl
Google-ExtendedGoogle
GooglebotGoogle
anthropic-aiAnthropic
Claude-WebAnthropic
PerplexityBotPerplexity
AmazonbotAmazon
Meta-ExternalAgentMeta

PerplexityBot or Claude-Web also reduces your visibility in those AI search tools.', 'adworksbid-seo' ), [ 'strong' => [] ] ); ?>

__( 'Saving…', 'adworksbid-seo' ), 'save_btn' => __( 'Save robots.txt', 'adworksbid-seo' ), 'reset_confirm' => __( 'Reset to WordPress default? Your custom rules will be deleted.', 'adworksbid-seo' ), 'preset_saved' => __( 'Preset inserted - remember to save.', 'adworksbid-seo' ), 'error_saving' => __( 'Error saving.', 'adworksbid-seo' ), 'request_failed' => __( 'Request failed.', 'adworksbid-seo' ), 'reset_failed' => __( 'Reset failed.', 'adworksbid-seo' ), ] ) . ';'; $awb_robots_js .= <<<'AWBROBOTSJS' (function($){ var nonce=$('#awb-robots-editor').length?awbRobotsNonce:''; var $editor=$('#awb-robots-editor'); var $notice=$('#awb-robots-notice'); function showNotice(msg,type){ $notice.css('color',type==='success'?'#00a32a':'#b32d2e').text(msg).show(); setTimeout(function(){$notice.hide();},4000); } $('#awb-robots-save').on('click',function(){ var $btn=$(this).prop('disabled',true).text(_awbRobotsStr.saving); $.post(ajaxurl,{action:'awbseo_save_robots_txt',nonce:nonce,content:$editor.val()},function(res){ if(res.success){showNotice('✓ '+res.data.message,'success');} else{showNotice('✗ '+(res.data||_awbRobotsStr.error_saving),'error');} }).fail(function(){showNotice('✗ '+_awbRobotsStr.request_failed,'error');}).always(function(){$btn.prop('disabled',false).text(_awbRobotsStr.save_btn);}); }); $('#awb-robots-reset').on('click',function(){ if(!confirm(_awbRobotsStr.reset_confirm))return; var $btn=$(this).prop('disabled',true); $.post(ajaxurl,{action:'awbseo_reset_robots_txt',nonce:nonce},function(res){ if(res.success){$editor.val(res.data.content);showNotice('✓ '+res.data.message,'success');} else{showNotice('✗ '+_awbRobotsStr.reset_failed,'error');} }).always(function(){$btn.prop('disabled',false);}); }); $('.awb-insert-preset').on('click',function(){ var rules=$(this).data('rules'); var current=$editor.val().trimEnd(); $editor.val(current+(current?'\n\n':'')+rules); showNotice(_awbRobotsStr.preset_saved,'success'); }); }(jQuery)); AWBROBOTSJS; wp_add_inline_script( 'awbseo-admin', $awb_robots_js ); ?>