WordPress at a glance
function is not described

Automattic\Jetpack\Autoloader\jpfd0d177b2d8140b4b20d4474b07b8ed7

Manifest_Reader::register_manifest() protected WC 1.0

Registers a plugin's manifest file with the path map.

{} It's a method of the class: Manifest_Reader{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->register_manifest( $manifest_path, $path_map );
$manifest_path(string) (required) (passed by reference — &)
The absolute path to the manifest that we're loading.
$path_map(array) (required) (passed by reference — &)
The path map to add the contents of the manifest to.

Code of Manifest_Reader::register_manifest() WC 5.3.0

<?php
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 );
	}
}