Themes are required to use add_theme_page() in the WordPress Theme Directory. You need:
add_theme_page(
$this->strings['page_title'], // Page title
$this->strings['menu_title'], // Menu title
'edit_theme_options', // Capability
$this->menu, // Menu slug
array( &$this, 'install_plugins_page' ) // Callback
);
s
add_theme_page(theme_name.' Settings', theme_name ,'install_themes', 'panel' , 'panel_options');
$theme_page = add_theme_page('Settings', theme_name.' Settings','install_themes', 'panel' , 'panel_options');
add_theme_page(theme_name.' Documentation', 'Documentation','install_themes', 'docs' , 'redirect_docs');
add_theme_page('Support', 'Support','install_themes', 'support' , 'innovative_get_support');
Related Posts:
- What is the best way to monitor PHP functions/executions?
- How do I set up Debugging?
- How to show the error causing the ‘There has been a critical error on your website’?
- How do you change error reporting to only show errors in WordPress?
- Unnessary character on post after restore
- Critical Error on Pages – WP_DEBUG Not Showing Anything
- WP_DEBUG is not set, but I’m still getting warnings
- Suppress deprecated notices
- Disable Debug Log Programmatically
- error_log is not working as expected in functions.php file
- Get PHP Fatal error on globalized $wpdb: Call to a member function insert() on a non-object- I have no clue. What to do?
- Wordpres debug.log PHP Notice: is_singular was called
- How to Debug WordPress
- Error message prevents access to WP
- Getting notices on fresh 3.6.1 install
- WordPress: Notice:Object of class WP_Query could not be converted to int in on line
- Why does WordPress keep showing me error messages?
- “Undefined index” error when saving empty array with checkboxes
- Front end empty (i.e. nothing displays); Back end looks fine; What are possible causes?
- WordPress debug messages not displaying
- WordPress + Buddpyress – troubleshooting server overloading
- Undefined index error on options array element?
- WordPress 6.x / PHP 8.x deprecated warnings in development environment
- How to find which plugin crashes
- TGM plugin error in Theme Check Plugin
- Fatal error trace not shown in development setup
- write developer debug statements to separate log
- I’m getting this ‘PHP Deprecated’ issue
- Platform sh site setup in localhost gets Cookie error
- Error logging in wordpress
- Cannot access non-wordpress subdirectories as wordpress overrides them with a 404 error
- Notice: Constant WP_POST_REVISIONS already defined
- How to stop certain warning logging in error.log?
- Error 404 Page Not Found When Updating a Post or Page
- Why on Earth am I getting “undefined_index” errors?
- Showing error “Function create_function() is deprecated”
- How to debug when error_log not working as expected
- Debugging ‘Object of class WP_Query could not be converted to int’ error
- Update wordpress fail – There has been a critical error on your website
- Add image only in first post
- New WordPress Error Message – Not seen this before
- Sodium compat error
- Fatal error: require(): Failed opening required ‘WP_DIRwp-blog-header.php’
- How to use add_settings_error in register_setting callback
- Application passwords not working on localhost?
- Debugging with functions.php
- In big trouble – Allowed memory size of 268435456 bytes exhausted
- Same log message keeps on printing to debug.log file thousand of times
- failed to open stream: No such file or directory
- Where are WP_Errors Saved
- update user information
- Error! 401.shtml file not found, what’s the problem?
- Strange glyphs code error
- Sorry, you are not allowed to access this page dashboard
- Custom slider throwing an error
- Homepage Not Found Error [closed]
- 4.2.2 stuck in an db upgrade loop with “Call to undefined method wpdb::get_col_length()”
- Cannot redeclare maybe_create_table()
- Debugging unserialize errors [closed]
- Why can I not execute php files under the wp-includes folder?
- Why do get_category_by_slug() crashes WordPress 4.8
- Headers already sent by
- Failed: Filesystem preventing downloads. ( ftpext)
- Code snippet to display ID gives critical error
- I tried to build a theme from scratch and it crashed everything
- Overwrote index.php. When I restored it, I got lots of Notice level errors
- 403 forbidden access to my whole site
- error log bloated by add_view
- Unable to locate WordPress content directory
- Constant WP_CRON_LOCK_TIMEOUT already defined in /htdocs/wp-config.php
- WP Core Update Issue
- Cannot upgrade to 4.0 – get SSL certificate error
- Fatal Error: get_header();
- Error when setting cookie
- Downgrade from latest nightly build to latest stable version
- download count29.php whene loading site [closed]
- Warning: call_user_func_array() [function.call-user-func-array]
- Parse error: syntax error, unexpected [closed]
- My new WordPress blog keeps refreshing in Chrome browser
- How to turn off WP error handling, but turn on php error handling?
- Help with “Uncaught Error: Attempt to modify property “response” on bool”
- Replace form field error text?
- Suddenly get errors in admin when editing post type
- WordPress won’t save page/post with more than 332 words
- Need Help Understanding Debug Log Errors
- Plugin debugging with errors in activation routine
- Site has fake users registered with a similar pattern in username and email
- WordPress fails when my post is larger than 1400 words
- Weird Parse Error on Uploaded File
- do_action( ‘init’ ) in wp-settings.php breaks my website. All plugins and themes disabled
- Why I am having error Call to undefined function get_header()?
- Fatal error: Cannot declare class WP_User_Request, because the name is already in use?
- Unexpected error with class-wp-hook.php on WordPress
- Fatal error: Call to undefined function wp_raise_memory_limit()
- Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ [closed]
- Whole right area of wordpress admin dashboard not showing
- WordPress Customizer not loading
- How do I turn off WordPress errors and just have regular old php errors?
- RSS Feed URL redirecting to site URL
- WordPress update bug