| Conditions | 4 |
| Paths | 4 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public static function can_be_displayed() { |
||
| 18 | /** |
||
| 19 | * Determines if the Setup Wizard is displayed or not. |
||
| 20 | * |
||
| 21 | * @since 8.5.0 |
||
| 22 | * |
||
| 23 | * @param array $jetpack_show_setup_wizard If true, the Setup Wizard will be displayed. Otherwise it will not display. |
||
| 24 | */ |
||
| 25 | return apply_filters( 'jetpack_show_setup_wizard', false ) |
||
| 26 | && Jetpack::is_active() |
||
| 27 | && current_user_can( 'jetpack_manage_modules' ) |
||
| 28 | && 'completed' !== Jetpack_Options::get_option( 'setup_wizard_status' ); |
||
| 29 | } |
||
| 30 | } |
||
| 31 |