Automattic\WooCommerce\Internal\StockNotifications\Frontend

MyAccountEndpoint::filter_endpoint_title │ public │ WC 1.0

Override the endpoint page title.

Method of the class: MyAccountEndpoint{}

No Hooks.

Returns

string.

Usage

$MyAccountEndpoint = new MyAccountEndpoint();
$MyAccountEndpoint->filter_endpoint_title( $title );
$title(string) (required)
The default title.

MyAccountEndpoint::filter_endpoint_title() code WC 11.3.0

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