“Internal Server Error” with wp_update_post
Actually, there are 2 issues in your code: You were using PHP custom file name instead of menu_slug. You were not using action and method attributes of form tag. When you were submitting form WordPress redirecting into admin.php?on=Turn+Registration+On which is not a valid page. add_submenu_page function 4th parameter must be unique menu slug of your … Read more