I am struggling with a strange issue in my theme options page. I am trying to add a menu page under appearance for theme settings...
add_theme_page( 'Theme Option','softlights Options', 'edit_theme_options', 'theme_options.php', 'softlights_options_page');
As you can see, if i change the menu slug "theme_options.php" to "soft lights-theme-options", the the theme settings page crashes throwing this error
You do not have sufficient permissions to access this page.
What is causing the issue? How do i fix it?