Yoast\WP\SEO

Loader::load()publicYoast 1.0

Loads all registered classes if their conditionals are met.

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

Хуков нет.

Возвращает

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

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

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

Код Loader::load() Yoast 22.3

public function load() {
	$this->load_initializers();

	if ( ! \did_action( 'init' ) ) {
		\add_action( 'init', [ $this, 'load_integrations' ] );
	}
	else {
		$this->load_integrations();
	}

	\add_action( 'rest_api_init', [ $this, 'load_routes' ] );

	if ( \defined( 'WP_CLI' ) && \WP_CLI ) {
		$this->load_commands();
	}
}