[ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * REST API: WP_REST_User_Meta_Fields class 4 * 5 * @package WordPress 6 * @subpackage REST_API 7 * @since 4.7.0 8 */ 9 10 /** 11 * Core class used to manage meta values for users via the REST API. 12 * 13 * @since 4.7.0 14 * 15 * @see WP_REST_Meta_Fields 16 */ 17 class WP_REST_User_Meta_Fields extends WP_REST_Meta_Fields { 18 19 /** 20 * Retrieves the user meta type. 21 * 22 * @since 4.7.0 23 * 24 * @return string The user meta type. 25 */ 26 protected function get_meta_type() { 27 return 'user'; 28 } 29 30 /** 31 * Retrieves the user meta subtype. 32 * 33 * @since 4.9.8 34 * 35 * @return string 'user' There are no subtypes. 36 */ 37 protected function get_meta_subtype() { 38 return 'user'; 39 } 40 41 /** 42 * Retrieves the type for register_rest_field(). 43 * 44 * @since 4.7.0 45 * 46 * @return string The user REST field type. 47 */ 48 public function get_rest_field_type() { 49 return 'user'; 50 } 51 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 22 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |