This commit is contained in:
Tung Du 2022-12-22 09:05:54 +07:00 committed by GitHub
parent da4221a9a7
commit b3ea73f3bb
1 changed files with 1 additions and 2 deletions

View File

@ -56,8 +56,7 @@ class ProductButton extends AbstractBlock {
* It is necessary to register and enqueue assets during the render phase because we want to load assets only if the block has the content.
*/
protected function register_block_type_assets() {
parent::register_block_type_assets();
$this->register_chunk_translations( [ $this->block_name ] );
return null;
}
/**