I have created a custom plugin and added the wp_list_tables and added some bulk actions, What I want to achieve when user select fields it should go on another page where, I can get all selected id's. Currently it's going in process_bulk_action and from there I am redirecting on anther page using get method is there any way to redirect all data using post method or direct submit on that page?

 public function process_bulk_action() {
            $url = admin_url('admin.php?page=youthclub'); 
             if('bulk-sms' === $this->current_action() && isset($_POST['bulk-delete']) ) {
                $export_ids = implode('-',esc_sql( $_POST['bulk-delete'] ));
                $url_3= admin_url('admin.php?page=send-bulk-sms&ids='.$export_ids); 
  • What's wrong with your current approach? – sandrodz Aug 16 '19 at 6:24
  • @sandrodz it's working but I don't want 2 step to reach that page also don't want to send value in url – Arunendra Aug 16 '19 at 6:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.