customer_tags_provider = new CustomerTagsProvider(); $this->order_tags_provider = new OrderTagsProvider(); $this->site_tags_provider = new SiteTagsProvider(); $this->store_tags_provider = new StoreTagsProvider(); } /** * Initialize the personalization tag manager. * * @internal * @return void */ final public function init(): void { add_filter( 'woocommerce_email_editor_register_personalization_tags', array( $this, 'register_personalization_tags' ) ); } /** * Register WooCommerce personalization tags with the registry. * * @param Personalization_Tags_Registry $registry The personalization tags registry. * @return Personalization_Tags_Registry */ public function register_personalization_tags( Personalization_Tags_Registry $registry ) { $this->customer_tags_provider->register_tags( $registry ); $this->order_tags_provider->register_tags( $registry ); $this->site_tags_provider->register_tags( $registry ); $this->store_tags_provider->register_tags( $registry ); return $registry; } }