Uses
Uses | Description |
---|---|
wp-admin/includes/class-wp-list-table.php: WP_List_Table::current_action() | Gets the current action selected from the bulk actions dropdown. |
Capture the bulk action required, and return it.
Overridden from the base class implementation to capture the role change drop-down.
(string) The bulk action required.
File: wp-admin/includes/class-wp-users-list-table.php
public function current_action() { if ( ( isset( $_REQUEST['changeit'] ) || isset( $_REQUEST['changeit2'] ) ) && ( ! empty( $_REQUEST['new_role'] ) || ! empty( $_REQUEST['new_role2'] ) ) ) { return 'promote'; } return parent::current_action(); }
Version | Description |
---|---|
3.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_users_list_table/current_action