To register my menus I usually use the init action hook, maybe you could try it.
add_action( 'init', 'pagespeed_register_menus' );
instead of
add_action( 'after_setup_theme', 'pagespeed_register_menus' );
Related Posts:
- Use default value of wp_customizer in theme_mod output?
- Why does get_theme_mod return blank (or default value) but get_option returns saved value?
- Why is remove_setting and remove_control not working?
- Get_theme_mod not retrieving value
- get_theme_mod not working
- get_theme_mod() only working when the customizer is open
- Customizer live preview not working, refreshes but nothing change
- adding checkbox to theme customizer
- get_theme_mod only returns false
- get_theme_mod filter ignores sanitize_callback
- Fetch customizer image and output as an inline css style background image
- How to properly delete and rename the custom settings/section/control in theme customizer?
- Repeater field in Customizer
- How WP_Customize_Background_Image_Control is supposed to work?
- How to print the value of a custom control in the Customizer?
- Customizer JS API dynamically add sections and controls
- Get all registered wp theme customizer sections?
- How to mix partial and full page refresh in the same section of the customizer?
- Conditional Logic to Check for Site Icon
- How do I check if user input in a field in the customizer is a number?
- How do I conditionally enqueue stylesheets or scripts in theme customizer settings?
- Customiser `active_callback` not working on control with `postMessage` transport method
- Is it possible to conditionally displaying and hiding of customizer controls for each device preview?
- Add or remove HTML class with selective refresh?
- How do I use add_control to offer a list of all pages in the customiser?
- Visible Edit Shortcut for WordPress menu that uses nav walker
- Section Name for Menu in Theme Customizer
- Is it still possible to nest panels within panels within the customizer?
- Make Customizer Load Specific Page
- Removing http:// from esc url() for wordpress customizer code
- Send data from Customizer Settings to Customizer Preview with settingless control
- WP Customizer JS Template not saving color field
- Change “Display Site Title and Tagline” checkbox text in theme customizer
- Customizer, change preview url when a control changes
- Hide Text when check box option is ticked in customizer?
- How to suppress anchor tag click redirection in customizer preview frame?
- Is there any function that would allow me to register custom stylesheets for the Customizer itself?
- Hide or remove the Remove button in WP_Customize_Image_Control
- What is the name of the setting in the customizer for ‘Display Site Title and Tagline’ checkbox?
- Theme Customizer – Hide / grey out settings based on other setting
- How to set a default color for the WordPress Customizer’s color picker?
- Customizer notifications for disabled and hidden controls
- How do I add a customizer control dynamically?
- Need help for suitable sanitize_callback for scroll_logo in customizer
- How to immediately apply values in customizer js api
- Is it possible to get the label of a theme customizer option?
- How to filter customize_loaded_components from a theme?
- Why is action customize_register being done twice?
- Does theme customizer need theme-customizer.js?
- customizer options not showing
- Customizer’s “Imported Fonts” – How To Use Them?
- Return a numerical function value in Customizer controls
- Save customizer setting to post meta
- JS event similar to render-partials-response in wordpress customiser selective refresh when the request is initialised?
- Insert content between sections in WP customizer
- Add items dynamically via Customizer [duplicate]
- How to localize something coming from theme customizer
- Initials of email looks strange on WordPress Website
- How to add Theme Customizer Color?
- Customizer section gone after adding second
- Sidebar visibility in {WordPress template Hyerarchy, Newspaper Theme, TagDiv Composer}
- How to create a tooltip behind a customizer setting label?
- Customize control does not show value of setting which was added via JS API
- Add Customize posts edit links to selectively refreshed partials [closed]
- Theme logo metadata into template file
- How to use variable from customizer.php in customizer.js
- Customizer Values Not Saving in Custom Theme
- customiser settings for checkbox (displaying content)
- Customizer.js changes not being recognized
- No option to select home page in theme customizer
- WP_Filesystem in custom customize control
- WP 3.8 theme customizer error
- Want to permanently remove pagination number page/2/ in WordPress
- How to get a custom field in theme customizer to live update the element in preview window?
- How to make a block for header font styling at customizer via function.php?
- Theme Customization with WP CLI
- @font-face in Customize Control
- customizer not working when ever i activate ssl
- how to sanitize customizer checkbox control
- Don’t print customizer styles when no setting has been used
- Adding Custom Image To Header Via New Customizer Setting
- Is it possible to ad custom block areas through Customizer that would allow adding Gutenberg blocks?
- “Display Site Title and Tagline” checkbox without adding Header Image option
- Why is my custom WordPress Customizer section disappearing after about a second?
- Why Settings API Options Override Customizer Settings?
- Customizer partial refresh issue with custom option
- Issues Saving Long String Option
- Theme customizer API get functions
- Theme Customizer: issue with default checkbox values
- WordPress Customizer Not Setting Custom Settings or Controls
- Using get_theme_mod with checkbox to display content
- Stop refresh event in customizer
- Access preview settings in php
- Problem with customizer setting with $id containing ‘widget’
- get_theme_mod not pulling css colors into header using wp_head
- Default Customizer Code
- Use $wp_customize->add_control to create a selectable “Designed/Powered By” choices select w/ link in footer?
- default custom background image not saved in database when creating a new site
- My stylesheet doesn’t appear in theme-editor
- How to display specific title on Customizer?