init(); } /** * Whether the current runtime can run the MCP module. * * @return bool */ public static function is_supported() { $supported = version_compare( PHP_VERSION, self::MIN_PHP, '>=' ) && function_exists( 'random_bytes' ) && function_exists( 'hash_equals' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Prefixed with nx_ per NotificationX convention. return (bool) apply_filters( 'nx_mcp_is_supported', $supported ); } }