get_edit_term_link

SummerySummery

Retrieves the URL for editing a given term.

Syntax

get_edit_term_link( int $term_id, string $taxonomy = '', string $object_type = '' )

ParametersParameters

$term_id

(int) (Required) Term ID.

$taxonomy

(string) (Optional) Taxonomy. Defaults to the taxonomy of the term identified by $term_id.

Default value: ''

$object_type

(string) (Optional) The object type. Used to highlight the proper post type menu on the linked page. Defaults to the first object_type associated with the taxonomy.

Default value: ''

ReturnReturn

(string|null) The edit term link URL for the given term, or null on failure.

SourceSource

File: wp-includes/link-template.php


			

ChangelogChangelog

Changelog
Version Description
4.5.0 The $taxonomy parameter was made optional.
3.1.0 Introduced.
Scroll to Top