Take the following steps to add custom features to the user list, using the Bulk Actions feature and marking the set of users as Staff Members by adding a database value:
- Log in to the Dashboard as an administrator.
- Click the Users menu from the left-hand section.
- Click the Bulk Actions drop-down field to see the available options. At this stage, only the Delete option will be available, as shown in the following screenshot:
- Open the wpcookbookchapter5.php file of the WPCookbook Chapter 5 plugin in the code editor.
- Add the following code to add a new action to the Bulk Actions drop-down field:
add_action('admin_footer', ...