Trying to adapt Custom List Table Example plugin for my own needs.
page field is responsible for specifying the plugin page to which the form containing List Table posts to:
<form id="movies-filter" method="get"> <!-- For plugins, we need to ensure that the form posts back to our current page --> <input type="hidden" name="page" value="<?php echo $_REQUEST['page']; ?>" /> <!-- Render the completed list table --> <?php $testListTable->display(); ?> </form>
The problem is I have this form inside Custom Meta Box of the post not on plugin page and I'd like to stay on Post Editing Screen (
/wp-admin/post.php?post=107&action=edit) after bulk action has been processed.
Contents of the
$_REQUEST array at the moment:
Array ( [post] => 107 [action] => edit )
Tried fields with names:
screen etc. Now I'm here.
Would you kindly point me to the correct way of achieving this? Can it be accomplished without redirect? Please note that I'm also not considering AJAX at this point.