true ] ); }; if ( version_compare( $wp_version, '6.9', '<' ) ) { /* translators: %s: minimum required WordPress version. */ $abort( sprintf( __( 'Agentgate for WebMCP needs WordPress %s+.', 'agentgate-for-webmcp' ), '6.9' ) ); } if ( ! function_exists( 'wp_register_ability' ) ) { $abort( __( 'Agentgate for WebMCP depends on the Abilities API shipped with WordPress 6.9.', 'agentgate-for-webmcp' ) ); } } ); add_action( 'plugins_loaded', function () { global $wp_version; if ( version_compare( $wp_version, '6.9', '<' ) ) { add_action( 'admin_notices', function () { echo '
'; esc_html_e( 'Agentgate for WebMCP is inactive — WordPress 6.9+ is required.', 'agentgate-for-webmcp' ); echo '