Remove construct method from Product Archive Compatiblity Layer (https://github.com/woocommerce/woocommerce-blocks/pull/8915)

Methods invoked in the constructor were already called when registering a class, so it duplicated the hooks
This commit is contained in:
kmanijak 2023-03-31 15:01:25 +02:00 committed by GitHub
parent 6ca96260a8
commit 39298f1341
1 changed files with 0 additions and 8 deletions

View File

@ -23,14 +23,6 @@ class ArchiveProductTemplatesCompatibility extends AbstractTemplateCompatibility
*/
protected $hook_data;
/**
* Constructor.
*/
public function __construct() {
$this->set_hook_data();
$this->init();
}
/**
* Update the render block data to inject our custom attribute needed to
* determine which blocks belong to an inherited Products block.