Automattic\WooCommerce\Internal\ProductAttributesLookup
DataRegenerator::finalize_regeneration()
Cleanup/final option setup after the regeneration has been completed.
Метод класса: DataRegenerator{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$DataRegenerator = new DataRegenerator(); $DataRegenerator->finalize_regeneration( $enable_usage );
- $enable_usage(true|false) (обязательный)
- Whether the table usage should be enabled or not.
Код DataRegenerator::finalize_regeneration() DataRegenerator::finalize regeneration WC 9.3.3
public function finalize_regeneration( bool $enable_usage ) { $this->cancel_regeneration_scheduled_action(); $this->delete_all_attributes_lookup_data( false ); update_option( 'woocommerce_attribute_lookup_enabled', $enable_usage ? 'yes' : 'no' ); }