I was able to track this down to the culprit function add_theme_page()
. There
There was an additional parameter, per the codex for add_theme_page() that needed to be removed. Removing that seemed to help.
function fivehundred_register_admin_menu() {
add_theme_page(
'500 Settings',
'500 Settings',
'manage_options',
'theme-settings',
'fivehundred_admin_menu',
plugins_url( '/ignitiondeck/images/ignitiondeck-menu.png' )
);
}
add_action(
'admin_menu',
'fivehundred_register_admin_menu'
);
Fixed code
function fivehundred_register_admin_menu() {
add_theme_page(
'500 Settings',
'500 Settings',
'manage_options',
'theme-settings',
'fivehundred_admin_menu'
);
}
add_action(
'admin_menu',
'fivehundred_register_admin_menu'
);
Related Posts:
- Customize WordPress>Error Page
- Strict Standards Error bootstrap navwalker
- How to remove duplicate link from add_menu_page
- WordPress settings API error when checkbox unchecked
- WordPress Errors in generated by theme check plugin [closed]
- Fatal error: Call to undefined function get_header()
- Theme Options page not showing up in admin menu
- Add submenus to Theme options menu
- Parse error: syntax error, unexpected T_ENDWHILE in
- Featured Images are not able to be set
- Getting php_network_getaddress error : No such host is known?
- Call to undefined function add_menu_page() on theme activation
- Website pagespeed problem
- What Does “Cannot modify header information?” Mean
- Theme Check errors of theme code
- HTTP Error when uploading images over specific dimensions
- Link to RSS feed not clickable?
- WordPress 6.x / PHP 8.x deprecated warnings in development environment
- WordPress Animation Adjustments
- PHP Parse error: syntax error, unexpected ‘endwhile’ (T_ENDWHILE), expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) on line 124
- How to handle theme activation errors?
- Get_header raises an 500 internal server error
- Strict Standards Error bootstrap navwalker
- Pass custom css class to add_menu_page
- Upgrade to WP 3.2/ and Server to php5 breaks theme? [closed]
- Menu items description? Custom Walker for wp_nav_menu()
- Sizing screenshot.png without losing aspect ratio
- What is $post_id? is it a global variable in WordPress?
- “Quick Edit” > update clears out my custom meta values
- Call dynamic_sidebar but include/exclude named widgets?
- Add default Backgrounds
- Page template in two level deep folder
- Adding customizer styles with wp_add_inline_style
- Best practices – Should I create a child theme vs. customizing a framework theme? (such as HTML5 reset)
- Worthwhile to restrict direct access of theme files?
- add_image_size is scaling, even though crop is set to true
- Problems with Layout inherit in theme.json
- Settings API enable default settings on theme install?
- Finding Page Template and Displaying Content
- Removing feeds from header using a function?
- How to link to theme options page from anywhere in admin?
- What is the best way mark entries as featured?
- How to reorganize the items returned by wp_list_comments()?
- How do you apply multiple skins to a site via the “templates” selector using stylesheet switching?
- Add theme support for post thumbnail isn’t working from theme class
- How to make wordpress theme iframe responsive
- Any dummy content I can use for development?
- How to add an option for “nofollow” to the Link editor’s existing “Link Relationship(XFN) options list?
- How can I alter the display of category listings via sidebar.php?
- Need advice > converting category assignments to custom post meta values
- How to edit theme functions file to modify pagination?
- Divi – How can we show background video on mobile
- Calling post_exists() causes white screen in after_setup_theme
- What’s the best practice way of handling custom fields in different post formats?
- Efficiency of wp_options vs a new table
- Edit value of the_content() before showing
- How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]
- header_image not returning header image url
- Taxonomy-$taxonomy-$term not working
- WordPress linking
- CSS class on last post in loop ( custom query )
- how to make wordpress change the title and keep page name?
- searchform.php doesn’t work properly
- Adding submenu to custom plugin menu page created with add_menu_page() function
- Place title (in correct place) above image with opaque background [closed]
- my single.php is mixup on some post for no reason
- How do I implement jPanelMenu?
- Post thumbnails Retrieve Url
- Stylesheet is not loading on firefox and IE!
- static front page ONLY for certain themes?
- How to add cropped custom header image?
- How to custom category template based on category?
- add_action for admin_init hook with a parameter
- custom post type query causing errors
- Is it possible for the enqueue styles function to mess up my CSS?
- how can i remove js file from my footer in wordpress
- WordPress Admin bar missing from custom theme
- How to dynamically set a background image with the customizer without putting the css as an inline-style
- SIte logo is not displaying
- wordpress custom category post shortcode
- WordPress files break if I edit them, but adding a closing PHP tag fixes it
- the_content() is getting null in Preview Debug
- Different WP Rest API custom endpoints across different themes
- How to set different localization file for different users?
- How to add an import widgets functionality to wordpress themes without a plugin
- how to add jquery to wordpress
- How to add custom nav_menu_css_class to certain menu only?
- Need help with adding custom menu content
- child comments not displaying as nested
- Simple loop with shortcode rendering problem
- Theme automatically inserting “more” tag on every post
- How get the 10 most viewed pages (not post)
- WordPress widgets manager option for emulating theme layout
- have_posts() return false on single post
- Im using a right approach to use this class inside WordPress theme?
- Bestway to write php functions
- Is using display: none the proper way to hide elements in a theme?
- How to change order of elements using a child theme
- Correct way to make a custom block theme responsive
- How to Enable Hot Module Replacement with Webpack