WC_Admin_Status::output_tables_info()private staticWC 1.0

Prints table info if a base table is not present.

Method of the class: WC_Admin_Status{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Admin_Status::output_tables_info();

WC_Admin_Status::output_tables_info() code WC 8.7.0

<?php
private static function output_tables_info() {
	$missing_tables = WC_Install::verify_base_tables( false );
	if ( 0 === count( $missing_tables ) ) {
		return;
	}
	?>

	<br>
	<strong style="color:#a00;">
		<span class="dashicons dashicons-warning"></span>
		<?php
			echo esc_html(
				sprintf(
				// translators: Comma separated list of missing tables.
					__( 'Missing base tables: %s. Some WooCommerce functionality may not work as expected.', 'woocommerce' ),
					implode( ', ', $missing_tables )
				)
			);
		?>
	</strong>

	<?php
}