Automattic\WooCommerce\Internal\StockNotifications\Frontend

MyAccountEndpoint::get_endpoint_url │ public static │ WC 1.0

Get the URL of the My Account > stock notifications endpoint.

Method of the class: MyAccountEndpoint{}

No Hooks.

Returns

string.

Usage

$result = MyAccountEndpoint::get_endpoint_url( $page ): string;
$page(int)
1-indexed page to link to. Page 1 has no page segment.
Default: 1

MyAccountEndpoint::get_endpoint_url() code WC 11.3.0

public static function get_endpoint_url( int $page = 1 ): string {
	$value = $page > 1 ? (string) $page : '';
	return \wc_get_endpoint_url( self::ENDPOINT, $value, \wc_get_page_permalink( 'myaccount' ) );
}