Yoast\WP\SEO

Loader::load_routes()publicYoast 1.0

Loads all registered routes if their conditionals are met.

Метод класса: Loader{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$Loader = new Loader();
$Loader->load_routes();

Код Loader::load_routes() Yoast 22.1

public function load_routes() {
	foreach ( $this->routes as $class ) {
		if ( ! $this->conditionals_are_met( $class ) ) {
			continue;
		}

		$route = $this->get_class( $class );

		if ( $route === null ) {
			continue;
		}

		$route->register_routes();
	}
}