Title: WP_REST_Comment_Meta_Fields::get_meta_subtype
Published: October 5, 2018
Last modified: August 20, 2026

---

# WP_REST_Comment_Meta_Fields::get_meta_subtype(): string

## In this article

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

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

Retrieves the comment meta subtype.

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

 string `'comment'` There are no subtypes.

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

    ```php
    protected function get_meta_subtype() {
    	return 'comment';
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/rest-api/fields/class-wp-rest-comment-meta-fields.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/rest-api/fields/class-wp-rest-comment-meta-fields.php#L37)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/rest-api/fields/class-wp-rest-comment-meta-fields.php#L37-L39)

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

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

## User Contributed Notes

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