woocommerce_attribute_taxonomy_row_actions │ filter-hook │ WC 11.1.0

Filters the row actions for a global product attribute taxonomy on the Products > Attributes screen.

The action values are HTML links. Default actions are escaped before this filter runs, and callbacks should return safe, escaped HTML.

Usage

add_filter( 'woocommerce_attribute_taxonomy_row_actions', 'wp_kama_woocommerce_attribute_taxonomy_row_actions_filter', 10, 3 );

/**
 * Function for `woocommerce_attribute_taxonomy_row_actions` filter-hook.
 * 
 * @param array $actions  Action link HTML keyed by action name.
 * @param object               $tax      Attribute taxonomy object.
 * @param string               $taxonomy Full taxonomy name, including the `pa_` prefix.
 *
 * @return array
 */
function wp_kama_woocommerce_attribute_taxonomy_row_actions_filter( $actions, $tax, $taxonomy ){
	// filter...
	return $actions;
}
$actions(array<string,string>)
Action link HTML keyed by action name.
$tax(object)
Attribute taxonomy object.
$taxonomy(string)
Full taxonomy name, including the pa_ prefix.

Changelog

Since 11.1.0 Introduced.

Where the hook is called

WC_Admin_Attributes::add_attribute()
woocommerce_attribute_taxonomy_row_actions
woocommerce/includes/admin/class-wc-admin-attributes.php 461
$actions     = (array) apply_filters( 'woocommerce_attribute_taxonomy_row_actions', $actions, $tax, $taxonomy );

Where the hook is used in WooCommerce

Usage not found.