WC_Admin_Status::output_tables_info()private staticWC 1.0

Prints table info if a base table is not present.

{} It's a method of the class: WC_Admin_Status{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Admin_Status::output_tables_info();

Code of WC_Admin_Status::output_tables_info() WC 6.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 seperated list of missing tables.
					__( 'Missing base tables: %s. Some WooCommerce functionality may not work as expected.', 'woocommerce' ),
					implode( ', ', $missing_tables )
				)
			);
		?>
	</strong>

	<?php
}