Timeline for Using admin-post.php for admin form but it directs me to admin-post.php white screen
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 28, 2021 at 13:07 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Feb 28, 2021 at 0:07 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Oct 29, 2020 at 15:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 1, 2020 at 12:08 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Feb 28, 2020 at 2:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Apr 18, 2018 at 20:54 | comment | added | Mark Kaplun | this is why you die after the var_dump. If nothing is printed it means that most likely you didn't get there at all | |
Apr 18, 2018 at 16:55 | answer | added | Coltvant | timeline score: 1 | |
Apr 18, 2018 at 16:31 | comment | added | Coltvant |
Ah I figured out that if I put my second function charge_customer_data() into functions.php it will work right. However, I would really like to keep all my functions in my plugin directory...is that possible?
|
|
Apr 18, 2018 at 16:18 | comment | added | Coltvant |
That's a good suggestion...my problem though is that I can't figure out a good place to debug. If I var_dump anywhere it's still not showing up because when I hit submit, it takes me right to the admin-post.php white page. I tried testing it within the form/function but it's the same issue.
|
|
Apr 18, 2018 at 16:09 | comment | added | Mark Kaplun | the way I debug such things is by var_dumping and dieing. Than you can see what are the values being set and the flow of the code that handles the request. It might be that you set the hooks at a wrong time and the code is not reached at all. | |
Apr 18, 2018 at 15:47 | history | asked | Coltvant | CC BY-SA 3.0 |