Yoast\WP\SEO
Loader::load()
Loads all registered classes if their conditionals are met.
Метод класса: Loader{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Loader = new Loader(); $Loader->load();
Код Loader::load() Loader::load Yoast 23.4
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(); } }