Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
90.00% covered (success)
90.00%
9 / 10
100.00% covered (success)
100.00%
1 / 1
CRAP
n/a
0 / 0
wpcomsh_ai_launchpad_sync_options
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2/**
3 * AI Launchpad support on WordPress.com Atomic sites.
4 *
5 * @package wpcomsh
6 */
7
8/**
9 * Sync the AI Launchpad state, so WordPress.com's copy of the site (e.g. /me/sites) sees changes made here.
10 *
11 * @param array $options Jetpack Sync allowed options.
12 * @return array
13 */
14function wpcomsh_ai_launchpad_sync_options( $options ) {
15    return array_merge(
16        $options,
17        array(
18            'wpcom_ai_launchpad_enabled',
19            'wpcom_ai_launchpad_dismissed',
20            'wpcom_ai_launchpad_completed',
21            'wpcom_ai_launchpad_no_guidance',
22        )
23    );
24}
25add_filter( 'jetpack_sync_options_whitelist', 'wpcomsh_ai_launchpad_sync_options' );