Core Function
View Source on Trac ↗ get_edit_term_link()
get_edit_term_link( mixed $term, mixed $taxonomy = '', mixed $object_type = '' ) Retrieves the URL for editing a given term.
Parameters 3 required
| Name / Type | Description |
|---|---|
| (int | | WP_Term | object) $term The ID or term object whose edit link will be retrieved. Required |
| string | $taxonomy Optional. Taxonomy. Defaults to the taxonomy of the term identified by `$term`. Required |
| string | $object_type 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. Required |
Return Value
((string)
| null) The edit term link URL for the given term, or null on failure.
Function Information
Since Version
3.1.0
Source File
wp-includes/link-template.php
Advertisement