Automattic\WooCommerce\Blocks\Domain\Services
CheckoutLink::init
Initialize the checkout link service.
Метод класса: CheckoutLink{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$CheckoutLink = new CheckoutLink(); $CheckoutLink->init();
Код CheckoutLink::init() CheckoutLink::init WC 11.3.0
public function init() {
add_action( 'init', array( $this, 'add_checkout_link_endpoint' ) );
add_filter( 'query_vars', array( $this, 'add_query_vars' ), 0 );
add_action( 'template_redirect', array( $this, 'handle_checkout_link_endpoint' ) );
}