Switch language

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




sync_category_tag_slugs [ WordPress Function ]

sync_category_tag_slugs ( $term, $taxonomy )
Defined at:



No description yet.

Source


<?php
function sync_category_tag_slugs$term$taxonomy ) {
    if ( 
global_terms_enabled() && ( $taxonomy == 'category' || $taxonomy == 'post_tag' ) ) {
        if ( 
is_object$term ) ) {
            
$term->slug sanitize_title$term->name );
        } else {
            
$term['slug'] = sanitize_title$term['name'] );
        }
    }
    return 
$term;
}
?>

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