WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get edit term link

Description

Retrieve edit term URL.

Usage

<?php get_edit_term_link$term$taxonomy$object_type ); ?>

Parameters

$term_id
(int) (required) Term ID
Default: None
$taxonomy
(string) (required) The slug of the taxonomy the term is in.
Default: None
$object_type
(string) (required) The object type the term is for. E.g., post, page, attachment, or a custom post type.
Default: None

Examples

$edit_link = esc_url( get_edit_term_link( $tag->term_id, $taxonomy, $this->screen->post_type ) );
function get_edit_tag_link( $tag_id, $taxonomy = 'post_tag' ) {
	return apply_filters( 'get_edit_tag_link', get_edit_term_link( $tag_id, $taxonomy ) );
}

Notes

Changelog

Resources

See also index of Function Reference and index of Template Tags.
This page is marked as incomplete. You can help Codex by expanding it.