Title: WP_List_Table::__get
Published: September 4, 2014
Last modified: April 28, 2025

---

# WP_List_Table::__get( string $name ): mixed

## In this article

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

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

Makes private properties readable for backward compatibility.

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

 `$name`stringrequired

Property to get.

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

 mixed Property.

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

    ```php
    public function __get( $name ) {
    	if ( in_array( $name, $this->compat_fields, true ) ) {
    		return $this->$name;
    	}

    	wp_trigger_error(
    		__METHOD__,
    		"The property `{$name}` is not declared. Getting a dynamic property is " .
    		'deprecated since version 6.4.0! Instead, declare the property on the class.',
    		E_USER_DEPRECATED
    	);
    	return null;
    }
    ```

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

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

| Uses | Description | 
| [wp_trigger_error()](https://developer.wordpress.org/reference/functions/wp_trigger_error/)`wp-includes/functions.php` |

Generates a user-level error/warning/notice/deprecation message.

  |

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

| Version | Description | 
| [6.4.0](https://developer.wordpress.org/reference/since/6.4.0/) | Getting a dynamic property is deprecated. | 
| [4.0.0](https://developer.wordpress.org/reference/since/4.0.0/) | Introduced. |

## User Contributed Notes

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