Switch language

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




_wp_filter_taxonomy_base [ WordPress Function ]

_wp_filter_taxonomy_base ( $base )
Access:
  • private
Parameters:
  • (string) $base The taxonomy base that we're going to filter
Returns:
  • (string)
Defined at:



Filter the URL base for taxonomies.

To remove any manually prepended /index.php/.

Source


<?php
function _wp_filter_taxonomy_base$base ) {
    if ( !empty( 
$base ) ) {
        
$base preg_replace'|^/index\.php/|'''$base );
        
$base trim$base'/' );
    }
    return 
$base;
}
?>

Examples [ wp-snippets.com ]

Top Google Search Results

More ...

User discussions [ wordpress.org ]

0 User Note(s)

None yet. Be the first!

Add New ...



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