WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

YoastSEO_Vendor\Psr\Http\Message

UriInterface::withFragment() public Yoast 1.0

Return an instance with the specified URI fragment.

This method MUST retain the state of the current instance, and return an instance that contains the specified URI fragment.

Users can provide both encoded and decoded fragment characters. Implementations ensure the correct encoding as outlined in getFragment().

An empty fragment value is equivalent to removing the fragment.

{} Это метод класса: UriInterface{}

Хуков нет.

Возвращает

static. A new instance with the specified fragment.

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

$UriInterface = new UriInterface();
$UriInterface->withFragment( $fragment );
$fragment(строка) (обязательный)
The fragment to use with the new instance.

Код UriInterface::withFragment() Yoast 15.3

<?php
public function withFragment($fragment);