WordPress at Your Fingertips
function is not described

Automattic\Jetpack\Autoloader\jp75e44bb1769a41d7ab3f080ddf78bcc8

Path_Processor::untokenize_path_constants() public WC 1.0

Given a path this will replace any of the path constant tokens with the expanded path.

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

No Hooks.

Return

String. The expanded path.

Usage

$Path_Processor = new Path_Processor();
$Path_Processor->untokenize_path_constants( $tokenized_path );
$tokenized_path(string) (required)
The path we want to process.

Code of Path_Processor::untokenize_path_constants() WC 5.5.2

<?php
public function untokenize_path_constants( $tokenized_path ) {
	$tokenized_path = wp_normalize_path( $tokenized_path );

	$constants = $this->get_normalized_constants();
	foreach ( $constants as $constant => $constant_path ) {
		$constant = '{{' . $constant . '}}';

		$len = strlen( $constant );
		if ( substr( $tokenized_path, 0, $len ) !== $constant ) {
			continue;
		}

		return $this->get_real_path( substr_replace( $tokenized_path, $constant_path, 0, $len ) );
	}

	return $tokenized_path;
}