Adding menu
-
I have tried adding this to my plugin to add a menu to the dashboard
`add_submenu_page(
‘xls-download’,
__( ‘XLS Download’, ‘xls-download’ ),
__( ‘XLS Download’, ‘xls-download’ ),
‘export’,
‘xls-download’
);`But I am getting
Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in …… public_html/wp-includes/capabilities.php on line 652
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Adding menu’ is closed to new replies.