Filters the URL base for taxonomies.
Description
To remove any manually prepended /index.php/.
Parameters
$base
stringrequired- The taxonomy base that we’re going to filter
Source
function _wp_filter_taxonomy_base( $base ) {
if ( ! empty( $base ) ) {
$base = preg_replace( '|^/index\.php/|', '', $base );
$base = trim( $base, '/' );
}
return $base;
}
Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.