Changes between Initial Version and Version 1 of Ticket #47690, comment 1
- Timestamp:
- 07/28/2019 10:16:27 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #47690, comment 1
initial v1 15 15 is unique for the `add_submenu_page()` then I suppose there's no harm using `remove_all_actions( $hookname )`. If it's not then we do need to somehow hold the `$function` passed on `add_submenu_page()` and use `remove_action( $hookname, $function )` instead. 16 16 17 It is important to remove the action because the submenu will be accessible using the direct link with the function callback as the output. 18 17 19 Another thing is, I changed the variable names passed on `remove_submenu_page()` from `$menu_slug` and `$submenu_slug` to `$parent_slug` and `$menu_slug` to make it consistent with the variable names used on `add_submenu_page()`. 18 20
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)