Replies: 0
I created a custom taxonomy a custom taxonomy
register_taxonomy(
'post_category',
array ('post'),
array (
'hierarchical' => true,
'public' => true,
'labels' => array(
'name' => __( 'Post Categories', THEME_SLUG ),
'singular_name' => __( 'Post Category', THEME_SLUG ),
)
)
);
Now I would like remove “View” link from the term rows.
add_filter( 'post_category_row_actions', function($actions,$tag) {
unset($actions['view']);
return $actions;
}, 10, 2);
but this doesn’t work.
Someone have any suggestion?
Thank you!