edit_term_link
Filters the anchor tag for the edit link of a term.
Usage
add_filter( 'edit_term_link', 'wp_kama_edit_term_link_filter', 10, 2 );
/**
* Function for `edit_term_link` filter-hook.
*
* @param string $link The anchor tag for the edit link.
* @param int $term_id Term ID.
*
* @return string
*/
function wp_kama_edit_term_link_filter( $link, $term_id ){
// filter...
return $link;
}
- $link(string)
- The anchor tag for the edit link.
- $term_id(int)
- Term ID.
Changelog
| Since 3.1.0 | Introduced. |
Where the hook is called
edit_term_link
wp-includes/link-template.php 1165
$link = $before . apply_filters( 'edit_term_link', $link, $term->term_id ) . $after;