---
title: "Remove SEOPress&#8217; bulk edit actions"
url: "https://www.seopress.org/support/hooks/remove-seopress-bulk-edit-actions/"
lang: en-US
updated: 2026-10-16
hook_name: seopress_bulk_actions
required_version: 10.3
---

# Remove SEOPress&#8217; bulk edit actions

- **Hook name:** `seopress_bulk_actions`
- **Required version:** 10.3

```php
<?php
// Remove SEOPress bulk actions (and their handlers) on post types, taxonomies and the media library
// for users who cannot manage options.
add_filter( 'seopress_bulk_actions', 'sp_bulk_actions', 10, 2 );
function sp_bulk_actions( $actions, $key ) {
	// $actions: bulk actions as $callback => $handler.
	// $key: post type or taxonomy name, 'attachment' for the media library.
	if ( current_user_can( 'manage_options' ) ) {
		return $actions;
	}

	// An empty array removes all of them on this screen.
	return array();
}
```

Source: [https://gist.github.com/wp-seopress/a7f663d5b1fa27a04351b880de082ebc](https://gist.github.com/wp-seopress/a7f663d5b1fa27a04351b880de082ebc)


**This snippet must be added to a [must-use plugin](https://wordpress.org/support/article/must-use-plugins/) to make it work.**
