Automattic\WooCommerce\Internal\Admin
CategoryLookup::define_category_lookup_tables_in_wpdb
Add category lookup table to $wpdb object.
Method of the class: CategoryLookup{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = CategoryLookup::define_category_lookup_tables_in_wpdb();
CategoryLookup::define_category_lookup_tables_in_wpdb() CategoryLookup::define category lookup tables in wpdb code WC 10.8.1
public static function define_category_lookup_tables_in_wpdb() {
global $wpdb;
// List of tables without prefixes.
$tables = array(
'wc_category_lookup' => 'wc_category_lookup',
);
foreach ( $tables as $name => $table ) {
$wpdb->$name = $wpdb->prefix . $table;
$wpdb->tables[] = $table;
}
}