Automattic\WooCommerce\Admin\Features\ProductBlockEditor

BlockRegistry::get_file_path()privateWC 1.0

Get a file path for a given block file.

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

Хуков нет.

Возвращает

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

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

// private - только в коде основоного (родительского) класса
$result = $this->get_file_path( $path, $dir );
$path(строка) (обязательный)
File path.
$dir(строка) (обязательный)
File directory.

Код BlockRegistry::get_file_path() WC 8.7.0

private function get_file_path( $path, $dir ) {
	return WC_ABSPATH . WCAdminAssets::get_path( 'js' ) . trailingslashit( $dir ) . $path;
}