I’ve a difficulty with WordPress. I’ve the under code and I get into the admin menu
public perform Create_Menu()
{
add_menu_page("demoset", "Demoset", 'manage_options', "demoset", array( $this ,"MenuFunction"), '', 6);
add_submenu_page("demoset", "All Tables", "All Tables", 'manage_options', "demoset", array( $this ,"MenuFunction"));
add_submenu_page("demoset", "Create Tables", "Create Tables", 'manage_options', "demolist", array( $this ,"Submenu_Function"));
}
public perform MenuFunction()
{
require_once ADMIN_VIEWS_PATH . 'view-dashboard.php';
}
public perform Submenu_Function()
{
require_once ADMIN_VIEWS_PATH . 'view-create.php';
}
public perform Edit_Function()
{
require_once ADMIN_VIEWS_PATH . 'view-edit.php';
}
I can entry my web page utilizing under hyperlink
http://localhost:8080/wordpress/wp-admin/admin.php?web page=demoset
http://localhost:8080/wordpress/wp-admin/admin.php?web page=demolist
Now, My challenge is, I’ve to make use of the under hyperlink and I’ve to name the Edit_Function
however I do not need to use the add_submenu_page
. Any thought tips on how to use it?
http://localhost:8080/wordpress/wp-admin/admin.php?web page=demoedit