(taxonomy)_row_actions хук-фильтрWP 3.0.0

Filters the action links displayed for each term in the terms list table.

The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.

Possible hook names include:


add_filter( '(taxonomy)_row_actions', 'wp_kama_taxonomy_row_actions_filter', 10, 2 );

 * Function for `(taxonomy)_row_actions` filter-hook.
 * @param string[] $actions An array of action links to be displayed.
 * @param WP_Term  $tag     Term object.
 * @return string[]
function wp_kama_taxonomy_row_actions_filter( $actions, $tag ){

	// filter...
	return $actions;
An array of action links to be displayed.
По умолчанию: 'Edit', 'Quick Edit', 'Delete', and 'View'
Term object.

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

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

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

wp-admin/includes/class-wp-terms-list-table.php 537
$actions = apply_filters( "{$taxonomy}_row_actions", $actions, $tag );

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

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