terms_to_edit хук-фильтрWP 2.8.0

Filters the comma-separated list of terms available to edit.

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

add_filter( 'terms_to_edit', 'wp_kama_terms_to_edit_filter', 10, 2 );

/**
 * Function for `terms_to_edit` filter-hook.
 * 
 * @param string $terms_to_edit A comma-separated list of term names.
 * @param string $taxonomy      The taxonomy name for which to retrieve terms.
 *
 * @return string
 */
function wp_kama_terms_to_edit_filter( $terms_to_edit, $taxonomy ){

	// filter...
	return $terms_to_edit;
}
$terms_to_edit(строка)
A comma-separated list of term names.
$taxonomy(строка)
The taxonomy name for which to retrieve terms.

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

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

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

get_terms_to_edit()
terms_to_edit
wp-admin/includes/taxonomy.php 295
$terms_to_edit = apply_filters( 'terms_to_edit', $terms_to_edit, $taxonomy );

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

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