Yoast\WP\SEO\Dashboard\Application\Endpoints
Endpoints_Repository::get_all_endpoints()
Creates a list with all endpoints.
Метод класса: Endpoints_Repository{}
Хуков нет.
Возвращает
Endpoint_List
. The list with all endpoints.
Использование
$Endpoints_Repository = new Endpoints_Repository(); $Endpoints_Repository->get_all_endpoints(): Endpoint_List;
Код Endpoints_Repository::get_all_endpoints() Endpoints Repository::get all endpoints Yoast 24.4
public function get_all_endpoints(): Endpoint_List { $list = new Endpoint_List(); foreach ( $this->endpoints as $endpoint ) { $list->add_endpoint( $endpoint ); } return $list; }