I am writing a Wordpress plugin for managing info about clients and projects for a company.
I have an admin menu called "Clients", which displays a simple table with all entries. If I have an "Edit" button for every table row, how would I link this button to another page where the data could be edited (passing the client id)? How does URL rewriting work here?
Sorry for asking such simple questions.. and thanks.
Edit:
How would I create this edit-page in the admin area, keeping the admin menu on the left, etc.? I have used this to add the submenu item:
add_submenu_page( "my-plugin-menu", __('General settings').'|'.__('My Plugin'),
__('General settings'), 1, "my-plugin-general", "my_plugin_admin_menu");
/* Include admin page content. */
function my_plugin_admin_menu()
{
global $wpdb;
include 'admin/pages/admin_menu.php'; // Admin page content.
}