Automattic\WooCommerce\Internal\StockNotifications\Frontend
MyAccountEndpoint::__construct
Constructor.
Метод класса: MyAccountEndpoint{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$MyAccountEndpoint = new MyAccountEndpoint(); $MyAccountEndpoint->__construct();
Код MyAccountEndpoint::__construct() MyAccountEndpoint:: construct WC 11.2.2
public function __construct() {
add_filter( 'woocommerce_get_query_vars', array( $this, 'register_query_var' ) );
add_filter( 'woocommerce_account_menu_items', array( $this, 'register_menu_item' ), 10, 2 );
add_filter( 'woocommerce_endpoint_' . self::ENDPOINT . '_title', array( $this, 'filter_endpoint_title' ) );
add_action( 'woocommerce_account_' . self::ENDPOINT . '_endpoint', array( $this, 'render_endpoint' ) );
add_action( 'template_redirect', array( $this, 'maybe_handle_action' ) );
}