With the lastest version of WordPress (4.3) you can now natively remove the customizer’s theme switch setting without resorting to CSS hacks.
/**
* Remove customizer options.
*
* @since 1.0.0
* @param object $wp_customize
*/
function ja_remove_customizer_options( $wp_customize ) {
//$wp_customize->remove_section( 'static_front_page' );
//$wp_customize->remove_section( 'title_tagline' );
//$wp_customize->remove_section( 'nav' );
$wp_customize->remove_section( 'themes' );
}
add_action( 'customize_register', 'ja_remove_customizer_options', 30 );
Related Posts:
- Display a different theme for not logged-in users
- Get password when user registers and save it sha1 into database
- Passing variable in hooks and filter
- Highlight “Show all” item in wp_list_categories
- Menu item added in wp_nav_menu_items filter is never highlighted
- Pass variable to hook. Its possible?
- Theme Customizer not loading JS for live preview
- How to change footer credit text in Twenty Twenty One theme with a hook?
- Modify available templates (in dropdown)
- Related Post Category Filter
- How to register dynamic settings in WordPress Customizer?
- WordPress wp_get_current_user returning blank values until refresh
- what is do_action(); in wordpress? [duplicate]
- Is there any filter or action hook to remove layout classes from appearing in my templates?
- How To extend WP_Customize_Control
- Get entered value of customiser field for live preview
- Is it possible ( or advisable) to allow open access to the new theme customizer for potential clients?
- How to modify an image block in Gutenberg WordPress 5?
- Add a dropdown to theme customizer
- Theme Customizer : how to create multiple-level panel
- Customizer Active Callback not working
- Editing the custom background CSS
- How to execute conditional script when on new customize.php (Theme Customize) screen
- How do I Make a Theme “plugin-ready”?
- What can I hook into after_setup_theme?
- Run shortcode before filters
- Identifying the priority of style.css so I can make a small CSS file load last
- WordPress Customize — Move “menus” options / field to another section
- How to use filter hook ‘post_updated_messages’ in coherence with action hook ‘save_post’
- How do I “unhook” / de-register jQuery so that it’s not called as part of wp_footer();?
- Changing the entire control choices using wp.customize with JavaScript
- wp_enqueue_scripts not called on search page?
- “Display Site Title and Tagline” checkbox not working?
- How to set page template on front using starter content?
- customizing the_password_form filter
- WordPress Genesis Child Theme Filter divs
- Change file name from wp_generate_attachment_metadata
- Change setting name in Customizer and keep the data
- Creating multiple hooks for theme
- after_setup_theme, Global Variable and Theme Customizer
- How can i add edit shortcut icon in wordpress customizer without using selective refresh?
- How to add theme support?
- Add new panel inside parent panel in WP Customize?
- Should I use function_exists() and/or add_action() in theme development?
- Unable to pass variable on theme cusomizer add_settings()
- How to add field customizable by the theme editor to your theme?
- Get a setting value conditionally in the Customizer api
- WP_Customize_Color_Control omitting # symbol
- Single-level menu option? Another way?
- How to change database values on theme update
- Theme-wide custom post template
- Q: How to pull data from custom table to populate zustomizer setting/control select options
- WordPress taxonomy and archive custom class
- Dynamically generated wordpress customizer options?
- WordPress custom taxonomy check box to dropdown
- The ‘default’ attribute from $wp_customize->add_setting() method not in db?
- Override customizer values on a per-menu base
- Filter categories used with Custom Structure Permalink
- Dynamic menu links after header title
- Unique design inside a specific category’s url
- How to rotate every letter in a title
- Why in the static pages of my theme are showing these information?
- CSS class on last post in loop ( custom query )
- Can I make a Customizer dropdown-pages list include private pages?
- Use a filter on menu items that have children
- Doing context-aware previews in the WordPress Customizer
- Alignment Problem [closed]
- Difference between “comment_form_default_fields” AND “comment_form_fields”
- Theme logo metadata into template file
- Customizer: get_preview_url() inside customize_save_after hook
- Is There A WordPress Hook for Accessing Attachments for A Particular Page?
- WP Customazation API doesn’t save the default Value
- Twenty Twelve Author not displaying
- content filter (add_filter) for category description?
- Let user to upload multiple time
- How to dynamically set a background image with the customizer without putting the css as an inline-style
- Default customizer colors aren’t displayed outside of the preview
- WordPress Custom Theme : Theme Builder vs ACF vs Gutenberg
- fetch all post from wp multisite network and sort all the post in descending order on the basis of “Created by ” term
- Put CSS Content inside tag for WordPress
- (Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme
- How to show some of category in wordpress
- Text View (Code View) in WordPress Customizer TinyMCE Editor
- Debugging slow WordPress Theme Customizer (Any option similar to Query Monitor)?
- Import settings from another theme
- Customizer Image-Picker Preview Not Working
- How to hook into wordpress upgrade procedure for a custom theme
- Alter theme pages on language switch
- Add multiple sections, settings and controls at once to the Customizer
- How to get url image page the right way?
- Missing hashtag with theme customizer header color
- Customizer_register theme options not saving
- Hook in parent theme Menu function
- How to add custom nav_menu_css_class to certain menu only?
- Editable screenshot.png in a custom theme developed
- Using Customizer value in an external PHP file inside a theme
- get_theme_mod not pulling css colors into header using wp_head
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- apply_filters to featured image
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?