diff --git a/src/class-admin.php b/src/class-admin.php index a6c7474..f249fab 100644 --- a/src/class-admin.php +++ b/src/class-admin.php @@ -23,7 +23,7 @@ public function register_hooks() { \add_action( 'admin_init', [ $this, 'register_settings' ] ); \add_filter( 'manage_edit-post_tag_columns', [ $this, 'add_tag_columns' ] ); \add_filter( 'manage_post_tag_custom_column', [ $this, 'manage_tag_columns' ], 10, 3 ); - \add_filter( 'tag_row_actions', [ $this, 'remove_view_action' ], 10, 2 ); + \add_filter( 'post_tag_row_actions', [ $this, 'remove_view_action' ], 10, 2 ); } /** diff --git a/tests/phpunit/test-class-admin.php b/tests/phpunit/test-class-admin.php index eb93b33..e291b5d 100644 --- a/tests/phpunit/test-class-admin.php +++ b/tests/phpunit/test-class-admin.php @@ -72,7 +72,7 @@ public function test_register_hooks() { $this->assertSame( 10, has_action( 'admin_init', [ self::$class_instance, 'register_settings' ] ) ); $this->assertSame( 10, has_action( 'manage_edit-post_tag_columns', [ self::$class_instance, 'add_tag_columns' ] ) ); $this->assertSame( 10, has_action( 'manage_post_tag_custom_column', [ self::$class_instance, 'manage_tag_columns' ] ), 10, 3 ); - $this->assertSame( 10, has_action( 'tag_row_actions', [ self::$class_instance, 'remove_view_action' ] ), 10, 2 ); + $this->assertSame( 10, has_action( 'post_tag_row_actions', [ self::$class_instance, 'remove_view_action' ] ), 10, 2 ); } /**