Filter hook 'tag_row_actions'

in WP Core File wp-admin/includes/class-wp-terms-list-table.php at line 546

View Source

tag_row_actions

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

Hook Information

File Location wp-admin/includes/class-wp-terms-list-table.php View on GitHub
Hook Type Filter
Line Number 546

Hook Parameters

Type Name Description
string[] $actions An array of action links to be displayed. Default 'Edit', 'Quick Edit', 'Delete', and 'View'.
WP_Term $tag Term object.

Usage Examples

Basic Usage
<?php
// Hook into tag_row_actions
add_filter('tag_row_actions', 'my_custom_filter', 10, 2);

function my_custom_filter($actions, $tag) {
    // Your custom filtering logic here
    return $actions;
}

Source Code Context

wp-admin/includes/class-wp-terms-list-table.php:546 - How this hook is used in WordPress core
<?php
 541  		 *
 542  		 * @param string[] $actions An array of action links to be displayed. Default
 543  		 *                          'Edit', 'Quick Edit', 'Delete', and 'View'.
 544  		 * @param WP_Term  $tag     Term object.
 545  		 */
 546  		$actions = apply_filters( 'tag_row_actions', $actions, $tag );
 547  
 548  		/**
 549  		 * Filters the action links displayed for each term in the terms list table.
 550  		 *
 551  		 * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.

PHP Documentation

<?php
/**
		 * Filters the action links displayed for each term in the Tags list table.
		 *
		 * @since 2.8.0
		 * @since 3.0.0 Deprecated in favor of {@see '{$taxonomy}_row_actions'} filter.
		 * @since 5.4.2 Restored (un-deprecated).
		 *
		 * @param string[] $actions An array of action links to be displayed. Default
		 *                          'Edit', 'Quick Edit', 'Delete', and 'View'.
		 * @param WP_Term  $tag     Term object.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-admin/includes/class-wp-terms-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.