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

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

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

add_filter( 'tag_row_actions', 'wp_kama_tag_row_actions_filter', 10, 2 );

/**
 * Function for `tag_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_tag_row_actions_filter( $actions, $tag ){

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

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

С версии 2.8.0 Введена.
С версии 3.0.0 Deprecated in favor of {@see '{$taxonomy}_row_actions'} filter.
С версии 5.4.2 Restored (un-deprecated).

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

WP_Terms_List_Table::handle_row_actions()
tag_row_actions
wp-admin/includes/class-wp-terms-list-table.php 545
$actions = apply_filters( 'tag_row_actions', $actions, $tag );

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

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