edit_term_link хук-фильтрWP 3.1.0

Filters the anchor tag for the edit link of a term.

Использование

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(строка)
The anchor tag for the edit link.
$term_id(int)
Term ID.

Список изменений

С версии 3.1.0 Введена.

Где вызывается хук

edit_term_link()
edit_term_link
wp-includes/link-template.php 1166
$link = $before . apply_filters( 'edit_term_link', $link, $term->term_id ) . $after;

Где используется хук в WordPress

Использование не найдено.