Automattic\Jetpack\Autoloader\jpcd4dc500be73992154ab94f06c9d1b27
Manifest_Handler::register_plugin_manifests() public WC 1.0
Registers all of the paths in a given manifest.
{} Это метод класса: Manifest_Handler{}
Хуков нет.
Возвращает
Массив. $path_map The path map we've built using the manifests in each plugin.
Использование
$Manifest_Handler = new Manifest_Handler(); $Manifest_Handler->register_plugin_manifests( $manifest_path, $path_map );
- $manifest_path(строка) (обязательный) (передается по ссылке — &)
- The path that we're loading the manifest from in each plugin.
- $path_map(массив) (обязательный) (передается по ссылке — &)
- The path map to add the contents of the manifests to.
Код Manifest_Handler::register_plugin_manifests() Manifest Handler::register plugin manifests WC 5.0.0
public function register_plugin_manifests( $manifest_path, &$path_map ) {
$file_paths = array_map(
function ( $path ) use ( $manifest_path ) {
return trailingslashit( $path ) . $manifest_path;
},
$this->active_plugin_paths
);
foreach ( $file_paths as $path ) {
$this->register_manifest( $path, $path_map );
}
return $path_map;
}