DataRegenerator::initiate_regeneration()

Initialize the regeneration procedure: deletes the lookup table and related options if they exist, then it creates the table and runs the first step of the regeneration process.


Description Description

This is the method that should be used as a callback for a data regeneration in wc-update-functions, e.g.:

function wc_update_XX_regenerate_product_attributes_lookup_table() { wc_get_container()->get(DataRegenerator::class)->initiate_regeneration(); return false; }

(Note how we are returning "false" since the class handles the step scheduling by itself).


Source Source

File: src/Internal/ProductAttributesLookup/DataRegenerator.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.