Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_basename [ WordPress Function ]

wp_basename ( $path, $suffix = '' )
Parameters:
  • (string) $path A path.
  • (string) $suffix If the filename ends in suffix this will also be cut off.
Returns:
  • (string)
Defined at:



i18n friendly version of basename()

Source


<?php
function wp_basename$path$suffix '' ) {
    return 
urldecodebasenamestr_replace'%2F''/'urlencode$path ) ), $suffix ) );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics