WP_Comments_List_Table::current_actionpublicWP 1.0

Gets the current action selected from the bulk actions dropdown.

Method of the class: WP_Comments_List_Table{}

No Hooks.

Returns

String|false. Current action or false if none.

Usage

$WP_Comments_List_Table = new WP_Comments_List_Table();
$WP_Comments_List_Table->current_action();

WP_Comments_List_Table::current_action() code WP 7.0

public function current_action() {
	if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) {
		return 'delete_all';
	}

	return parent::current_action();
}