Automattic\WooCommerce\Blocks\Templates
ClassicTemplatesCompatibility::init()
Initialization method.
Метод класса: ClassicTemplatesCompatibility{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->init();
Код ClassicTemplatesCompatibility::init() ClassicTemplatesCompatibility::init WC 8.7.0
protected function init() { if ( ! wc_current_theme_is_fse_theme() ) { add_action( 'template_redirect', array( $this, 'set_classic_template_data' ) ); // We need to set this data on the widgets screen so the filters render previews. add_action( 'load-widgets.php', array( $this, 'set_filterable_product_data' ) ); } }