0

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); 
                self::redirect($url_3);
            }
        }
2
  • What's wrong with your current approach?
    – sandrodz
    Commented Aug 16, 2019 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
    Commented Aug 16, 2019 at 6:56

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.