Automattic\Jetpack\Autoloader\jpcd4dc500be73992154ab94f06c9d1b27
Manifest_Handler::register_manifest() protected WC 1.0
Registers a plugin's manifest file with the path map.
{} Это метод класса: Manifest_Handler{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->register_manifest( $manifest_path, $path_map );
- $manifest_path(строка) (обязательный) (передается по ссылке — &)
- The absolute path to the manifest that we're loading.
- $path_map(массив) (обязательный) (передается по ссылке — &)
- The path map to add the contents of the manifest to.
Код Manifest_Handler::register_manifest() Manifest Handler::register manifest WC 5.0.0
protected function register_manifest( $manifest_path, &$path_map ) {
if ( ! is_readable( $manifest_path ) ) {
return;
}
$manifest = require $manifest_path;
if ( ! is_array( $manifest ) ) {
return;
}
foreach ( $manifest as $key => $data ) {
$this->register_record( $key, $data, $path_map );
}
}