Automattic\WooCommerce\Internal\Admin
CategoryLookup::define_category_lookup_tables_in_wpdb()
Add category lookup table to $wpdb object.
Метод класса: CategoryLookup{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = CategoryLookup::define_category_lookup_tables_in_wpdb();
Код CategoryLookup::define_category_lookup_tables_in_wpdb() CategoryLookup::define category lookup tables in wpdb WC 8.7.0
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; } }