Retrieves the edit link for a tag.
Parameters
$tagint|WP_Term|objectrequired- The ID or term object whose edit link will be retrieved.
$taxonomystringoptional- Taxonomy slug. Default
'post_tag'.Default:
'post_tag'
Source
function get_edit_tag_link( $tag, $taxonomy = 'post_tag' ) {
/**
* Filters the edit link for a tag (or term in another taxonomy).
*
* @since 2.7.0
*
* @param string $link The term edit link.
*/
return apply_filters( 'get_edit_tag_link', get_edit_term_link( $tag, $taxonomy ) );
}
Hooks
- apply_filters( ‘get_edit_tag_link’,
string $link ) Filters the edit link for a tag (or term in another taxonomy).
Changelog
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.