get_edit_term_link [ WordPress Function ]
get_edit_term_link ( $term_id, $taxonomy, $object_type = '' )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: edit_term_link, get_edit_tag_link, get_term_link, get_edit_post_link, get_edit_comment_link
Retrieve edit term url.
Source
<?php
function get_edit_term_link( $term_id, $taxonomy, $object_type = '' ) {
$tax = get_taxonomy( $taxonomy );
if ( !current_user_can( $tax->cap->edit_terms ) )
return;
$term = get_term( $term_id, $taxonomy );
$args = array(
'action' => 'edit',
'taxonomy' => $taxonomy,
'tag_ID' => $term->term_id,
);
if ( $object_type )
$args['post_type'] = $object_type;
$location = add_query_arg( $args, admin_url( 'edit-tags.php' ) );
return apply_filters( 'get_edit_term_link', $location, $term_id, $taxonomy, $object_type );
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- get_edit_term_link | A HitchHackers guide through WordPress
Feb 24, 2011 ... function get_edit_term_link( $term_id, $taxonomy, $object_type ... return apply_filters( 'get_edit_term_link', $location, $term_id, $taxonomy, ...
hitchhackerguide.com - get_edit_term_link() WordPress function reference, arguments and ...
get_edit_term_link( $term_id, $taxonomy, $object_type = '' ). term_id: (int) Term ID; taxonomy: (string) Taxonomy; object_type: (string) The object type. Default: '' ...
queryposts.com - get_edit_term_link() | Rachel Carden
get_edit_term_link(). This WordPress function requires the CPT-onomy class. Description; Usage; Parameters; Return Values; Examples; Related Functions ...
rachelcarden.com - plugin development - Adding fields to category manager. Does a ...
Jan 31, 2011 ... Prior to 3.1, get_edit_tag_link( $tag_id, $taxonomy = 'post_tag' ) did the same thing - now it's just rewritten to use get_edit_term_link internally.
wordpress.stackexchange.com