Automattic\WooCommerce\Internal\StockNotifications\Frontend
MyAccountEndpoint::filter_endpoint_title
Override the endpoint page title.
Метод класса: MyAccountEndpoint{}
Хуков нет.
Возвращает
string.
Использование
$MyAccountEndpoint = new MyAccountEndpoint(); $MyAccountEndpoint->filter_endpoint_title( $title );
- $title(строка) (обязательный)
- The default title.
Код MyAccountEndpoint::filter_endpoint_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' );
}