WP_List_Table::current_action() – Gets the current action selected from the bulk actions dropdown.

You appear to be a bot. Output may be restricted

Description

Gets the current action selected from the bulk actions dropdown.

Usage

$string|false = WP_List_Table::current_action();

Parameters

Returns

string|false The action name. False if no action was selected.

Source

File name: wordpress/wp-admin/includes/class-wp-list-table.php
Lines:

1 to 11 of 11
  public function current_action() {
    if ( isset( $_REQUEST['filter_action'] ) && ! empty( $_REQUEST['filter_action'] ) ) {
      return false;
    }

    if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] ) {
      return $_REQUEST['action'];
    }

    return false;
  }
 

 View on GitHub View on Trac