public function bulk_actions()
    {
        if (is_null($this->actions)) {
            $this->actions = $this->get_bulk_actions();
            $this->actions = apply_filters('bulk_actions-' . $this->screen->id, $this->actions);
            $two = '';
        } else {
            $two = '2';
        }

        if (empty($this->actions)) {
            return;
        }

        echo "<select name='action$two'>\n";
        echo "<option value='-1' selected='selected'>" . __('Bulk Actions') . "</option>\n";

        foreach ($this->actions as $name => $title) {
            $class = 'edit' == $name ? ' class="hide-if-no-js"' : '';

            echo "\t<option value='$name'$class>$title</option>\n";
        }

        echo "</select>\n";

        submit_button(__('Apply'), 'action', false, false, array('id' => "doaction$two"));
        echo "\n";
    }
public function bulk_actions()
    {
        if (is_null($this->actions)) {
            $this->actions = $this->get_bulk_actions();
            $this->actions = apply_filters('bulk_actions-' . $this->screen->id, $this->actions);
            $two = '';
        } else {
            $two = '2';
        }

        if (empty($this->actions)) {
            return;
        }

        echo "<select name='action$two'>\n";
        echo "<option value='-1' selected='selected'>" . __('Bulk Actions') . "</option>\n";

        foreach ($this->actions as $name => $title) {
            $class = 'edit' == $name ? ' class="hide-if-no-js"' : '';

            echo "\t<option value='$name'$class>$title</option>\n";
        }

        echo "</select>\n";

        submit_button(__('Apply'), 'action', false, false, array('id' => "doaction$two"));
        echo "\n";
    }
public function bulk_actions ( ) { if ( is_null ( $ this -> actions ) ) { $ this -> actions = $ this -> get_bulk_actions ( ) ; $ this -> actions = apply_filters ( 'bulk_actions-' . $ this -> screen -> id , $ this -> actions ) ; $ two = '' ; } else { $ two = '2' ; } if ( empty ( $ this -> actions ) ) { return ; } echo "<select name='action$two'>\n" ; echo "<option value='-1' selected='selected'>" . __ ( 'Bulk Actions' ) . "</option>\n" ; foreach ( $ this -> actions as $ name => $ title ) { $ class = 'edit' == $ name ? ' class="hide-if-no-js"' : '' ; echo "\t<option value='$name'$class>$title</option>\n" ; } echo "</select>\n" ; submit_button ( __ ( 'Apply' ) , 'action' , false , false , array ( 'id' => "doaction$two" ) ) ; echo "\n" ; }
Display the bulk actions dropdown.
Display the bulk actions dropdown .