Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
CRAP
n/a
0 / 0
wpcom_ai_launchpad_is_eligible
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/**
3 * AI Launchpad eligibility — single source of truth shared by the admin-menu gate and the REST controller.
4 *
5 * @package automattic/jetpack-mu-wpcom
6 */
7
8if ( ! function_exists( 'wpcom_ai_launchpad_is_eligible' ) ) {
9    /**
10     * Whether the current site may use the AI Launchpad.
11     *
12     * @return bool
13     */
14    function wpcom_ai_launchpad_is_eligible() {
15        return \Automattic\Jetpack\Jetpack_Mu_Wpcom\AI_Launchpad::is_eligible();
16    }
17}