Yoast\WP\SEO\AI_Consent\Infrastructure\Endpoints
Consent_Endpoint{}└─ Endpoint_Interface
Устарела с версии 28.4. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Represents the setup steps tracking endpoint.
Хуков нет.
Использование
$Consent_Endpoint = new Consent_Endpoint(); // use class methods
Методы
- public get_name()
- public get_namespace()
- public get_route()
- public _deprecated_function( __METHOD__, 'Yoast SEO 28.4' )
- public get_url()
- ERROR: no method name found on line `* @deprecated 28.4`
- ERROR: no method name found on line ``
- ERROR: no method name found on line `*`
Список изменений
| Устарела с | 28.4 |
Код Consent_Endpoint{} Consent Endpoint{} Yoast 28.9
class Consent_Endpoint implements Endpoint_Interface {
/**
* Gets the name.
*
* @deprecated 28.4
* @codeCoverageIgnore
*
* @return string
*/
public function get_name(): string {
\_deprecated_function( __METHOD__, 'Yoast SEO 28.4' );
return 'consent';
}
/**
* Gets the namespace.
*
* @deprecated 28.4
* @codeCoverageIgnore
*
* @return string
*/
public function get_namespace(): string {
\_deprecated_function( __METHOD__, 'Yoast SEO 28.4' );
return Consent_Route::ROUTE_NAMESPACE;
}
/**
* Gets the route.
*
* @deprecated 28.4
* @codeCoverageIgnore
*
* @throws Exception If the route prefix is not overwritten this throws.
* @return string
*/
public function get_route(): string {
\_deprecated_function( __METHOD__, 'Yoast SEO 28.4' );
return Consent_Route::ROUTE_PREFIX;
}
/**
* Gets the URL.
*
* @deprecated 28.4
* @codeCoverageIgnore
*
* @return string
*/
public function get_url(): string {
\_deprecated_function( __METHOD__, 'Yoast SEO 28.4' );
return \rest_url( $this->get_namespace() . $this->get_route() );
}
}