WPSEO_Endpoint{}Yoast 1.0

Dictates the required methods for an Endpoint implementation.

Хуков нет.

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

$WPSEO_Endpoint = new WPSEO_Endpoint();
// use class methods

Методы

  1. public can_retrieve_data()
  2. public register()

Код 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();
}