Title: WP_View_Config_Data::get_data
Published: August 20, 2026

---

# WP_View_Config_Data::get_data(): array

## In this article

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

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

This function’s access is marked private. This means it is not intended for use 
by plugin or theme developers, only by core. It is listed here for completeness.

Returns the current configuration array.

## 󠀁[Description](https://developer.wordpress.org/reference/classes/wp_view_config_data/get_data/?output_format=md#description)󠁿

Deliberately private: filter callbacks receive the container, not the materialized
configuration, so they cannot read the built result and become coupled to a specific
configuration shape or schema version. Only the class itself reconciles the container
back into an array.

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

 array The configuration.

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

    ```php
    private function get_data() {
    	return $this->config;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-view-config-data.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/class-wp-view-config-data.php#L116)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-view-config-data.php#L116-L118)

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

| Used by | Description | 
| [WP_View_Config_Data::apply_filters()](https://developer.wordpress.org/reference/classes/wp_view_config_data/apply_filters/)`wp-includes/class-wp-view-config-data.php` |

Applies the entity view configuration filter and returns the result.

  |

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

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

## User Contributed Notes

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