Automattic\WooCommerce\Internal\StockNotifications\Frontend

MyAccountEndpoint::__construct │ public │ WC 1.0

Constructor.

Method of the class: MyAccountEndpoint{}

No Hooks.

Returns

null. Nothing (null).

Usage

$MyAccountEndpoint = new MyAccountEndpoint();
$MyAccountEndpoint->__construct();

MyAccountEndpoint::__construct() code WC 11.2.1

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' ) );
}