wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



_wp_filter_taxonomy_base › WordPress Function

Da2.6.0
Deprecaton/a
_wp_filter_taxonomy_base ( $base )
Accedi:
  • private
Parametri:
  • (string) $base The taxonomy base that we're going to filter
    Richiesto:
Ritorna:
  • (string)
Definito a:
Codex:

Filters the URL base for taxonomies.

To remove any manually prepended /index.php/.


Sorgenti

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