WPSEO_Endpoint{}
Dictates the required methods for an Endpoint implementation.
Хуков нет.
Использование
$WPSEO_Endpoint = new WPSEO_Endpoint(); // use class methods
Методы
- public can_retrieve_data()
- public register()
Код WPSEO_Endpoint{} WPSEO Endpoint{} Yoast 22.4
interface WPSEO_Endpoint { /** * Registers the routes for the endpoints. * * @return void */ public function register(); /** * Determines whether or not data can be retrieved for the registered endpoints. * * @return bool Whether or not data can be retrieved. */ public function can_retrieve_data(); }