WordPress at Your Fingertips
function is not described

WooCommerce::define_tables() private WC 1.0

Register custom tables within $wpdb object.

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

No Hooks.

Return

null. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->define_tables();

Code of WooCommerce::define_tables() WC 5.6.0

private function define_tables() {
	global $wpdb;

	// List of tables without prefixes.
	$tables = array(
		'payment_tokenmeta'      => 'woocommerce_payment_tokenmeta',
		'order_itemmeta'         => 'woocommerce_order_itemmeta',
		'wc_product_meta_lookup' => 'wc_product_meta_lookup',
		'wc_tax_rate_classes'    => 'wc_tax_rate_classes',
		'wc_reserved_stock'      => 'wc_reserved_stock',
	);

	foreach ( $tables as $name => $table ) {
		$wpdb->$name    = $wpdb->prefix . $table;
		$wpdb->tables[] = $table;
	}
}