Automattic\WooCommerce\Internal\ComingSoon
ComingSoonRequestHandler::init()
Sets up the hook.
Метод класса: ComingSoonRequestHandler{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$ComingSoonRequestHandler = new ComingSoonRequestHandler(); $ComingSoonRequestHandler->init( $coming_soon_helper );
- $coming_soon_helper(ComingSoonHelper) (обязательный)
- Dependency.
Код ComingSoonRequestHandler::init() ComingSoonRequestHandler::init WC 9.7.1
final public function init( ComingSoonHelper $coming_soon_helper ) { $this->coming_soon_helper = $coming_soon_helper; add_filter( 'template_include', array( $this, 'handle_template_include' ) ); add_filter( 'wp_theme_json_data_theme', array( $this, 'experimental_filter_theme_json_theme' ) ); add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_styles' ) ); }