Title: WP_Customize_Themes_Section::json
Published: November 20, 2017
Last modified: February 24, 2026

---

# WP_Customize_Themes_Section::json(): array

## In this article

 * [Return](https://developer.wordpress.org/reference/classes/wp_customize_themes_section/json/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_customize_themes_section/json/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_customize_themes_section/json/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_customize_themes_section/json/?output_format=md#changelog)

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

Gets section parameters for JS.

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

 array Exported parameters.

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

    ```php
    public function json() {
    	$exported                = parent::json();
    	$exported['action']      = $this->action;
    	$exported['filter_type'] = $this->filter_type;

    	return $exported;
    }
    ```

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

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_customize_themes_section/json/?output_format=md#related)󠁿

| Uses | Description | 
| [WP_Customize_Section::json()](https://developer.wordpress.org/reference/classes/wp_customize_section/json/)`wp-includes/class-wp-customize-section.php` |

Gather the parameters passed to client JavaScript via JSON.

  |

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

| Version | Description | 
| [4.9.0](https://developer.wordpress.org/reference/since/4.9.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_themes_section%2Fjson%2F)
before being able to contribute a note or feedback.