Changing name of duplicated sub-menu
-
I’m using this method
( https://developer.www.ads-software.com/reference/functions/add_submenu_page/#div-comment-446 )
by codex to rename the duplicated/first sub-menu of the parentadd_menu_page()
.My question is should I put the callback function on
add_menu_page()
oradd_submenu_page()
or both?I’ve tested putting the callback function on one of them or both, and they work.
But I want to know which method is better in terms of performance and for avoiding duplicated data purposes.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Changing name of duplicated sub-menu’ is closed to new replies.