$unmet Requirements codes. */ public function __construct( private readonly array $unmet ) { } /** * Hook the notice. */ public function register(): void { add_action( 'admin_notices', array( $this, 'render' ) ); // A network-activated add-on is managed from network admin. add_action( 'network_admin_notices', array( $this, 'render' ) ); } /** * Print the notice for users who can manage plugins. */ public function render(): void { if ( ! current_user_can( 'activate_plugins' ) || ! NoticeScreens::relevant() ) { return; } echo '

' . esc_html__( 'Agent Firewall for WooCommerce is inactive.', 'agentic-daisy-ai-agent-firewall-for-woocommerce' ) . '

'; } }