関数 get_edit_term_link()
2015/01/14
関数 get_edit_term_link()
定義ファイル :/blog/wp-includes/link-template.php 2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 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 ); } |