Switch language

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




get_terms_to_edit [ WordPress Function ]

get_terms_to_edit ( $post_id, $taxonomy = 'post_tag' )
Parameters:
  • (unknown_type) $post_id
Returns:
  • (unknown)
Defined at:



{@internal Missing Short Description}}

Source


<?php
function get_terms_to_edit$post_id$taxonomy 'post_tag' ) {
    
$post_id = (int) $post_id;
    if ( !
$post_id )
        return 
false;

    
$tags wp_get_post_terms($post_id$taxonomy, array());

    if ( !
$tags )
        return 
false;

    if ( 
is_wp_error($tags) )
        return 
$tags;

    foreach ( 
$tags as $tag )
        
$tag_names[] = $tag->name;
    
$tags_to_edit join','$tag_names );
    
$tags_to_edit esc_attr$tags_to_edit );
    
$tags_to_edit apply_filters'terms_to_edit'$tags_to_edit$taxonomy );

    return 
$tags_to_edit;
}
?>

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