Yoast\WP\Lib
Abstract_Main::load() public Yoast 1.0
Loads the plugin.
{} Это метод класса: Abstract_Main{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$Abstract_Main = new Abstract_Main(); $Abstract_Main->load();
Код Abstract_Main::load() Abstract Main::load Yoast 15.9
public function load() {
if ( $this->container ) {
return;
}
try {
$this->container = $this->get_container();
Container_Registry::register( $this->get_name(), $this->container );
if ( ! $this->container ) {
return;
}
if ( ! $this->container->has( Loader::class ) ) {
return;
}
$this->container->get( Loader::class )->load();
} catch ( Exception $e ) {
if ( $this->is_development() ) {
throw $e;
}
// Don't crash the entire site, simply don't load.
}
}