WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Internal\ProductAttributesLookup

DataRegenerator::__construct() public WC 1.0

DataRegenerator constructor.

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

No Hooks.

Return

null. Nothing.

Usage

$DataRegenerator = new DataRegenerator();
$DataRegenerator->__construct();

Code of DataRegenerator::__construct() WC 5.9.0

public function __construct() {
	global $wpdb;

	$this->lookup_table_name = $wpdb->prefix . 'wc_product_attributes_lookup';

	add_filter(
		'woocommerce_debug_tools',
		function( $tools ) {
			return $this->add_initiate_regeneration_entry_to_tools_array( $tools );
		},
		1,
		999
	);

	add_action(
		'woocommerce_run_product_attribute_lookup_regeneration_callback',
		function () {
			$this->run_regeneration_step_callback();
		}
	);
}