Yoast\WP\SEO

Loader::load_routes()publicYoast 1.0

Loads all registered routes if their conditionals are met.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код Loader::load_routes() Yoast 19.7.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();
	}
}