WordPress: Remove view link from a category actions row olatechproJune 9, 20232 Views How can I remove the “view” action from a wordpress category? Read MoreWooCommerce: get_current_screen not working with multi languageCan’t login on WordPressWordPress: Ajax not working to insert, query and result data I need a PHP function to add into theme’s functions.php; no jQuery please. Post Views: 2 Related postsGet rid of this Strict Standards warningWooCommerce: get_current_screen not working with multi languageCan’t login on WordPressForce HTTPS using .htaccess – stuck in redirect loopWordPress: Ajax not working to insert, query and result dataHow Can I pass an image file to wp_handle_upload?
The code that prints that is in wp-admin/includes/class-wp-terms-list-table.php Adding this to your theme’s functions.php removes the View link: add_filter( 'category_row_actions', function($actions,$tag) { unset($actions['view']); return $actions; }, 10, 2);
you should try {$taxonomy}_row_actions action, https://developer.wordpress.org/reference/hooks/taxonomy_row_actions-2/. That should let you modify the links for specified taxonomy.
The code that prints that is in
wp-admin/includes/class-wp-terms-list-table.php
Adding this to your theme’s
functions.php
removes theView
link:you should try {$taxonomy}_row_actions action,
https://developer.wordpress.org/reference/hooks/taxonomy_row_actions-2/.
That should let you modify the links for specified taxonomy.