Last active
September 15, 2016 16:09
-
-
Save mariadanieldeepak/39de04b130cee751ca1304b0c4b9c8c5 to your computer and use it in GitHub Desktop.
Replace default Bulk Actions option name by overriding bulk_action method of WP_List_Table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function bulk_actions( $which ) { | |
if( $which == 'top' || 'bottom' == $which ) { | |
?> | |
<div class="alignleft actions bulkactions"> | |
<label class="screen-reader-text" for="bulk-action-selector-top">Select bulk action</label> | |
<select id="bulk-action-selector-top" name="action"> | |
<option value="-1">Default option</option> | |
<option value="1">Option 1</option> | |
<option value="2">Option 2</option> | |
</select> | |
<input type="submit" value="Apply" class="button action" id="doaction"> | |
</div> | |
<?php | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment