CoreFiles by mySites.guru
class-wp-rest-user-meta-fields.php21 lines, 334 bytes, from wordpress-4.7-beta1.zip
Raw History Compare with 4.6-beta4
md5
5db1ad9409e150719b4efbd0e489c4e6
sha1
af079c2b99ef61bc4fc7134bb4e2512194cfd7a9
sha256
fca45589b9ee55bfc3176703783ba49d46e94129d5a3eeef794df508c943455c
<?php

class WP_REST_User_Meta_Fields extends WP_REST_Meta_Fields {
	/**
	 * Get the object type for meta.
	 *
	 * @return string
	 */
	protected function get_meta_type() {
		return 'user';
	}

	/**
	 * Get the type for `register_rest_field`.
	 *
	 * @return string
	 */
	public function get_rest_field_type() {
		return 'user';
	}
}

No other release has this exact content. See every version of this file.