WC_Admin_Status::output_tables_info()private staticWC 1.0

Prints table info if a base table is not present.

Метод класса: WC_Admin_Status{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$result = WC_Admin_Status::output_tables_info();

Код WC_Admin_Status::output_tables_info() 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
}