Automattic\WooCommerce\Internal\StockNotifications\Frontend

MyAccountEndpoint::get_endpoint_url │ public static │ WC 1.0

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

Метод класса: MyAccountEndpoint{}

Хуков нет.

Возвращает

string.

Использование

$result = MyAccountEndpoint::get_endpoint_url( $page ): string;
$page(int)
1-indexed page to link to. Page 1 has no page segment.
По умолчанию: 1

Код MyAccountEndpoint::get_endpoint_url() WC 11.2.2

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