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

Filters the edit link for a term.

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

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(строка)
The edit link.
$term_id(int)
Term ID.
$taxonomy(строка)
Taxonomy name.
$object_type(строка)
The object type.

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

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

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

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 );

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

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