status(). * * @package AgentReadyForWooCommerce */ defined( 'ABSPATH' ) || exit; require_once ARWC_PLUGIN_DIR . 'admin/views/helpers.php'; $arwc_saved = isset( $_GET['arwc_settings'] ) && 'saved' === sanitize_key( wp_unslash( $_GET['arwc_settings'] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- display-only flash flag. $arwc_total = (int) $status['crawlers_total']; // How many agents we can show as allowed. The live robots.txt loopback fetch is // best-effort (it can fail on local/staging hosts); when it does, but our rule is // enabled, WordPress still adds every crawler — so show the full count rather than // a misleading zero. if ( $status['robots_fetched'] ) { $arwc_allowed = count( (array) $status['crawlers_allowed'] ); } elseif ( $status['crawlers_enabled'] ) { $arwc_allowed = $arwc_total; } else { $arwc_allowed = 0; } ?>

= 0 ) : ?>

0 ) { printf( /* translators: %d: number of plugins deactivated. */ esc_html( _n( 'Deactivated %d conflicting plugin. AgenticTrack now owns crawler rules and llms.txt.', 'Deactivated %d conflicting plugins. AgenticTrack now owns crawler rules and llms.txt.', $arwc_deactivated, 'agentictrack-agent-readiness-for-woocommerce' ) ), (int) $arwc_deactivated ); } else { esc_html_e( 'No conflicting plugins were active.', 'agentictrack-agent-readiness-for-woocommerce' ); } ?>

.

↓

↓

build_robots_preview(); $arwc_robots_lines = explode( "\n", $arwc_robots_full ); $arwc_robots_more = count( $arwc_robots_lines ) > 200; $arwc_robots_show = implode( "\n", array_slice( $arwc_robots_lines, 0, 200 ) ); ?>

build_llms_txt(); $arwc_llms_lines = explode( "\n", $arwc_llms_full ); $arwc_llms_more = count( $arwc_llms_lines ) > 200; $arwc_llms_show = implode( "\n", array_slice( $arwc_llms_lines, 0, 200 ) ); $arwc_llms_prods = substr_count( $arwc_llms_full, "\n- [" ); ?>