Used By
| Used By | Description | 
|---|---|
| wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::get_items() | Retrieves a list of comment items. | 
Prepends internal property prefix to query parameters to match our response fields.
(string) (Required) Query parameter.
(string) The normalized query parameter.
File: wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
protected function normalize_query_param( $query_param ) {
		$prefix = 'comment_';
		switch ( $query_param ) {
			case 'id':
				$normalized = $prefix . 'ID';
				break;
			case 'post':
				$normalized = $prefix . 'post_ID';
				break;
			case 'parent':
				$normalized = $prefix . 'parent';
				break;
			case 'include':
				$normalized = 'comment__in';
				break;
			default:
				$normalized = $prefix . $query_param;
				break;
		}
		return $normalized;
	}  | Version | Description | 
|---|---|
| 4.7.0 | Introduced. | 
    © 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
    https://developer.wordpress.org/reference/classes/wp_rest_comments_controller/normalize_query_param