Packages::load_packages()

Loads packages after plugins_loaded hook.


Description Description

Each package should include an init file which loads the package so it can be used by core.


Source Source

File: src/Packages.php

	protected static function load_packages() {
		foreach ( self::$packages as $package_name => $package_class ) {
			if ( ! self::package_exists( $package_name ) ) {
				self::missing_package( $package_name );
				continue;
			}
			call_user_func( array( $package_class, 'init' ) );
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.