Automattic\WooCommerce\Internal\Admin
SystemStatusReport::render_onboarding_state()
Render the onboarding state row.
Method of the class: SystemStatusReport{}
No Hooks.
Return
null
. Nothing (null).
Usage
$SystemStatusReport = new SystemStatusReport(); $SystemStatusReport->render_onboarding_state();
SystemStatusReport::render_onboarding_state() SystemStatusReport::render onboarding state code WC 8.7.0
<?php public function render_onboarding_state() { $onboarding_profile = get_option( 'woocommerce_onboarding_profile', array() ); $onboarding_state = '-'; if ( isset( $onboarding_profile['skipped'] ) && $onboarding_profile['skipped'] ) { $onboarding_state = 'skipped'; } if ( isset( $onboarding_profile['completed'] ) && $onboarding_profile['completed'] ) { $onboarding_state = 'completed'; } ?> <tr> <td data-export-label="Onboarding"> <?php esc_html_e( 'Onboarding', 'woocommerce' ); ?>: </td> <td class="help"><?php echo wc_help_tip( esc_html__( 'Was onboarding completed or skipped?', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td> <td> <?php echo esc_html( $onboarding_state ) ?> </td> </tr> <?php }