Uses
Uses | Description |
---|---|
wp-includes/functions.php: path_is_absolute() | Test if a given filesystem path is absolute. |
Join two filesystem paths together.
For example, ‘give me $path relative to $base’. If the $path is absolute, then it the full path is returned.
(string) (Required) Base path.
(string) (Required) Path relative to $base.
(string) The path with the base or absolute path.
File: wp-includes/functions.php
function path_join( $base, $path ) { if ( path_is_absolute( $path ) ) { return $path; } return rtrim( $base, '/' ) . '/' . ltrim( $path, '/' ); }
Version | Description |
---|---|
2.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/path_join