Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
740
Widok
0
10/09/2021 11:10 am
Topic starter
how to add?
1 Answer
0
10/09/2021 11:14 am
Topic starter
This is hax :)
- Debug and find __MY_VARIABLE__SLUG__
- die(var_dump($submenu));
- Search for right slug name
function add_custom_link_into_submenu() { global $submenu; $custom_url= 'https://google.com'; $submenu["__MY_VARIABLE__SLUG__"][] = array( Click my link', 'manage_options', $custom_url ); }
and register it inside init()
add_action('admin_menu', array($this,'add_custom_link_into_submenu'));