add_action( 'category_row_actions', 'zl_actions_rows' , 10 ,2 );
public function 'zl_actions_rows' ( $actions, $category ) {
$new_actions = array();
$new_actions['edit'] = $actions['edit'];
$new_actions['template'] = '<a href="#" aria-label="' . __( 'Custom Link', 'zl') . '">' . __( 'Custom Link', 'zl') . '</a>';
$new_actions['view'] = $actions['view'];
$new_actions['inline hide-if-no-js'] = $actions['inline hide-if-no-js'];
return $new_actions;
}
![Cover image for WordPress: Custom link in taxonomy row actions](https://media.dev.to/cdn-cgi/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1amh8q7ohyy4ne7a0r56.jpg)
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)