get_edit_term_link filter-hookWP 3.1.0

Filters the edit link for a term.

Usage

add_filter( 'get_edit_term_link', 'wp_kama_get_edit_term_link_filter', 10, 4 );

/**
 * Function for `get_edit_term_link` filter-hook.
 * 
 * @param string $location    The edit link.
 * @param int    $term_id     Term ID.
 * @param string $taxonomy    Taxonomy name.
 * @param string $object_type The object type.
 *
 * @return string
 */
function wp_kama_get_edit_term_link_filter( $location, $term_id, $taxonomy, $object_type ){

	// filter...
	return $location;
}
$location(string)
The edit link.
$term_id(int)
Term ID.
$taxonomy(string)
Taxonomy name.
$object_type(string)
The object type.

Changelog

Since 3.1.0 Introduced.

Where the hook is called

get_edit_term_link()
get_edit_term_link
wp-includes/link-template.php 1121
return apply_filters( 'get_edit_term_link', $location, $term_id, $taxonomy, $object_type );

Where the hook is used in WordPress

Usage not found.