Yoast\WP\SEO\AI\Consent\Infrastructure\Endpoints
Consent_Endpoint{}└─ Consent_Endpoint_Interface
Represents the setup steps tracking endpoint.
Хуков нет.
Использование
$Consent_Endpoint = new Consent_Endpoint(); // use class methods
Методы
- public get_name()
- public get_namespace()
- public get_route()
- public get_url()
- ERROR: no method name found on line `*/`
- ERROR: no method name found on line `*/`
- ERROR: no method name found on line `*/`
- ERROR: no method name found on line `*/`
Код Consent_Endpoint{} Consent Endpoint{} Yoast 27.7
class Consent_Endpoint implements Consent_Endpoint_Interface {
/**
* Gets the name.
*
* @return string
*/
public function get_name(): string {
return 'consent';
}
/**
* Gets the namespace.
*
* @return string
*/
public function get_namespace(): string {
return Consent_Route::ROUTE_NAMESPACE;
}
/**
* Gets the route.
*
* @throws Exception If the route prefix is not overwritten this throws.
* @return string
*/
public function get_route(): string {
return Consent_Route::ROUTE_PREFIX;
}
/**
* Gets the URL.
*
* @return string
*/
public function get_url(): string {
return \rest_url( $this->get_namespace() . $this->get_route() );
}
}