I want to debug a certain submit action inside a plugin's admin panel. The panel stays inside the dashboard of wordpress. Its url is as follows:
http://localhost/wordpress/wp-admin/admin.php?page=pods&action=edit&id=681&do=create
The submit action is not specified. Thus it is handled by the same php file that generated the above page.
<form action="" method="post" class="pods-submittable">
How can I find out the php file that generated the above page?
If you are talking about https://wordpress.org/extend/plugins/pods/ then go to your Wordpress plugins directory and look in the 'pods' folder. The following files contain that string:
Without knowing what action you are trying to perform I can't narrow down which file is the one being used for that action. If you can post the HTML for some additional form fields on that page I can do a search in these files for that HTML.
The following script let you find any wordpress plugin and, obviously, the page parameters is key for the search.
For example in the case page=pods, you must enter into your wordpress docroot and execute:
You should see the file(s) matching the search (it should be only one) and the row matched. The row matched is related to the function call add_menu_page. This function creates a new top level menu section in the admin menu.
If you take a look at WordPress Reference for add_menu_page function, the third parameter $menu_slug is the key to understand how the things works, this is the page parameter.
*The slug name to refer to this menu by (should be unique for this menu). Prior to Version 3.0 this was called the file (or handle) parameter. If the function parameter is omitted, the menu_slug should be the PHP file that handles the display of the menu page content*