Automattic\WooCommerce\Internal\StockNotifications\Frontend

MyAccountEndpoint::filter_endpoint_title │ public │ WC 1.0

Override the endpoint page title.

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

Хуков нет.

Возвращает

string.

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

$MyAccountEndpoint = new MyAccountEndpoint();
$MyAccountEndpoint->filter_endpoint_title( $title );
$title(строка) (обязательный)
The default title.

Код MyAccountEndpoint::filter_endpoint_title() WC 11.2.2

public function filter_endpoint_title( $title ) {
	// Avoid parameter not used PHPCS errors.
	unset( $title );
	return __( 'Stock notifications', 'woocommerce' );
}