Definition:
function wp_basename( $path, $suffix = '' ) {}
i18n friendly version of basename()
Parameters
- string $path: A path.
- string $suffix: If the filename ends in suffix this will also be cut off.
Source code
function wp_basename( $path, $suffix = '' ) { return urldecode( basename( str_replace( '%2F', '/', urlencode( $path ) ), $suffix ) ); }
10607
No comments yet... Be the first to leave a reply!