WP_Customize_Manager::remove_control( string $id )

Remove a customize control.


Description Description

Note that removing the control doesn’t destroy the WP_Customize_Control instance or remove its filters.


Top ↑

Parameters Parameters

$id

(string) (Required) ID of the control.


Top ↑

Source Source

File: wp-includes/class-wp-customize-manager.php

	public function remove_control( $id ) {
		unset( $this->controls[ $id ] );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

  1. Skip to note 2 content
    Contributed by WebMat

    custom_logo for the logo

    if ( ! function_exists( 'custom_customize_register' ) ) {
    	/**
    	 * Register basic customizer support.
    	 *
    	 * @param object $wp_customize Customizer reference.
    	 */
    	function custom_customize_register( $wp_customize ) {
    		$wp_customize->remove_control("custom_logo");
    	}
    }
    add_action( 'customize_register', 'custom_customize_register' );
    

You must log in before being able to contribute a note or feedback.