Yoast\WP\Lib

Abstract_Main::load()publicYoast 1.0

Loads the plugin.

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

Хуков нет.

Возвращает

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

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

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

Код Abstract_Main::load() Yoast 22.4

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.
	}
}