Automattic\WooCommerce\Internal\Admin

SystemStatusReport::render_options()publicWC 1.0

Render option row.

Method of the class: SystemStatusReport{}

No Hooks.

Return

null. Nothing (null).

Usage

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

SystemStatusReport::render_options() code WC 8.6.1

<?php
public function render_options() {
	$woocommerce_admin_install_timestamp = get_option( 'woocommerce_admin_install_timestamp' );

	$all_options_expected = is_numeric( $woocommerce_admin_install_timestamp )
		&& 0 < (int) $woocommerce_admin_install_timestamp
		&& is_array( get_option( 'woocommerce_onboarding_profile', array() ) );

	?>
		<tr>
			<td data-export-label="Options">
				<?php esc_html_e( 'Options', 'woocommerce' ); ?>:
			</td>
			<td class="help"><?php echo wc_help_tip( esc_html__( 'Do the important options return expected values?', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td>
			<td>
				<?php
				if ( $all_options_expected ) {
					echo '<mark class="yes"><span class="dashicons dashicons-yes"></mark>';
				} else {
					echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . esc_html__( 'Not all expected', 'woocommerce' ) . '</mark>';
				}
				?>
			</td>
		</tr>
	<?php
}