Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Trying to adapt Custom List Table Example plugin for my own needs.

Here the 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: post + action, 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.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.