Automattic\WooCommerce\Internal\Utilities
URL::get_path
Outputs the path. Especially useful if it was a a regular filepath that was passed in originally.
Method of the class: URL{}
No Hooks.
Returns
String.
Usage
$URL = new URL(); $URL->get_path( ?string $path_override ): string;
- ?string $path_override
- .
Default:null
URL::get_path() URL::get path code WC 10.8.1
public function get_path( ?string $path_override = null ): string {
return ( $this->components['drive'] ? $this->components['drive'] . ':' : '' ) . ( $path_override ?? $this->components['path'] );
}