Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 64413

{$taxonomy}_row_actions in custom taxonomy

$
0
0

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!


Viewing all articles
Browse latest Browse all 64413

Trending Articles