Automattic\WooCommerce\Internal\Admin

SystemStatusReport::render_onboarding_state()publicWC 1.0

Render the onboarding state row.

{} Это метод класса: SystemStatusReport{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$SystemStatusReport = new SystemStatusReport();
$SystemStatusReport->render_onboarding_state();

Код SystemStatusReport::render_onboarding_state() WC 6.6.1

<?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
}