wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



_wp_filter_taxonomy_base › WordPress Function

Depuis2.6.0
Dépréciéen/a
_wp_filter_taxonomy_base ( $base )
Accès:
  • private
Paramètres:
  • (string) $base The taxonomy base that we're going to filter
    Requis: Oui
Retourne:
  • (string)
Défini(e) dans:
Codex:

Filters the URL base for taxonomies.

To remove any manually prepended /index.php/.


Source

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