post_tag_row_actions filter-hookWP 3.0.0

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

This is one of the variants of the dynamic hook (taxonomy)_row_actions

Usage

add_filter( 'post_tag_row_actions', 'wp_kama_post_tag_row_actions_filter', 10, 2 );

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

	// filter...
	return $actions;
}
$actions(string[])
An array of action links to be displayed.
Default: 'Edit', 'Quick Edit', 'Delete', and 'View'
$tag(WP_Term)
Term object.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.