bulk_actions-(screen_id) filter-hook . WP 3.1.0
Filters the items in the bulk actions menu of the list table.
The dynamic portion of the hook name, $this->screen->id, refers to the ID of the current screen.
Usage
add_filter( 'bulk_actions-(screen_id)', 'filter_function_name_2439' ); function filter_function_name_2439( $actions ){ // filter... return $actions; }
- $actions(array)
- An array of the available bulk actions.
Changelog
Since 3.1.0 | Introduced. |
Since 5.6.0 | A bulk action can now contain an array of options in order to create an optgroup. |
Where the hook is called
bulk_actions-(screen_id)
wp-admin/includes/class-wp-list-table.php 475
$this->_actions = apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores