Submitting a form on a custom admin page in wordpress

前端 未结 4 2224
没有蜡笔的小新
没有蜡笔的小新 2021-02-19 21:21

I created a custom page in the wordpress admin which has a simple file upload field and a submit button. I need to figure out how to submit the page to somewhere it can be proce

4条回答
  •  醉梦人生
    2021-02-19 21:55

    I had to change code like this to work:

    add_action( 'admin_post_wpse10500', 'wpse10500_admin_action' );
    

提交回复
热议问题