Automattic\WooCommerce\Internal\ProductAttributesLookup
DataRegenerator::truncate_lookup_table()
Delete all the data from the lookup table.
Method of the class: DataRegenerator{}
No Hooks.
Return
null
. Nothing (null).
Usage
$DataRegenerator = new DataRegenerator(); $DataRegenerator->truncate_lookup_table();
DataRegenerator::truncate_lookup_table() DataRegenerator::truncate lookup table code WC 9.3.3
public function truncate_lookup_table() { global $wpdb; $wpdb->query( "TRUNCATE TABLE {$this->lookup_table_name}" ); // phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared }