Title: WP_Customize_Manager::get_section
Published: April 25, 2014
Last modified: February 24, 2026

---

# WP_Customize_Manager::get_section( string $id ): 󠀁[WP_Customize_Section](https://developer.wordpress.org/reference/classes/wp_customize_section/)󠁿|void

## In this article

 * [Parameters](https://developer.wordpress.org/reference/classes/wp_customize_manager/get_section/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/classes/wp_customize_manager/get_section/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_customize_manager/get_section/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_customize_manager/get_section/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_customize_manager/get_section/?output_format=md#wp--skip-link--target)

Retrieves a customize section.

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/wp_customize_manager/get_section/?output_format=md#parameters)󠁿

 `$id`stringrequired

Section ID.

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_customize_manager/get_section/?output_format=md#return)󠁿

 [WP_Customize_Section](https://developer.wordpress.org/reference/classes/wp_customize_section/)
|void The section, if set.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_customize_manager/get_section/?output_format=md#source)󠁿

    ```php
    public function get_section( $id ) {
    	if ( isset( $this->sections[ $id ] ) ) {
    		return $this->sections[ $id ];
    	}
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-customize-manager.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/class-wp-customize-manager.php#L4016)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-customize-manager.php#L4016-L4020)

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_customize_manager/get_section/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.4.0](https://developer.wordpress.org/reference/since/3.4.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_customize_manager%2Fget_section%2F)
before being able to contribute a note or feedback.