get_terms_to_edit [ WordPress Function ]
get_terms_to_edit ( $post_id, $taxonomy = 'post_tag' )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: get_term_to_edit, get_user_to_edit, get_tags_to_edit, get_category_to_edit, get_post_to_edit
{@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
- get_terms_to_edit | A HitchHackers guide through WordPress
Feb 12, 2011 ... Source code. function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) { $ post_id = (int) $post_id; if ( !$post_id ) return false; $tags ...
hitchhackerguide.com - get_terms_to_edit (WordPress Function) - WPSeek.com
WordPress lookup for get_terms_to_edit, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - PHPXRef 0.7 : WordPress : Detail view of taxonomy.php
get_terms_to_edit() wp_create_term(). Functions. Functions that ...
phpxref.ftwr.co.uk - Docs for page taxonomy.php
unknown_type $post_id; $taxonomy. get_terms_to_edit (line 217). since: 2.8.0. unknown get_terms_to_edit (unknown_type $post_id, [ $taxonomy = 'post_tag']) ...
phpdoc.wordpress.org