I am developing a plugin and I have following code:
add_object_page("Firms Manager", "Firms", 8, 'firm_listing', "business_listings");
add_submenu_page('firm_listing', 'Add Firm' , 'Add Firm', 8, 'firm, 'add_firm' );
1. Main menu 'Firms' item also appears in submenu.
3. I want to change the page/title header dynamically when user is 'editing' the firm rather than 'adding'. Right now it always shows 'Add Firm'.
Please let me know how I can achieve the above.