equal
deleted
inserted
replaced
15 * @see WP_REST_Meta_Fields |
15 * @see WP_REST_Meta_Fields |
16 */ |
16 */ |
17 class WP_REST_Comment_Meta_Fields extends WP_REST_Meta_Fields { |
17 class WP_REST_Comment_Meta_Fields extends WP_REST_Meta_Fields { |
18 |
18 |
19 /** |
19 /** |
20 * Retrieves the object type for comment meta. |
20 * Retrieves the comment type for comment meta. |
21 * |
21 * |
22 * @since 4.7.0 |
22 * @since 4.7.0 |
23 * |
23 * |
24 * @return string The meta type. |
24 * @return string The meta type. |
25 */ |
25 */ |
26 protected function get_meta_type() { |
26 protected function get_meta_type() { |
27 return 'comment'; |
27 return 'comment'; |
28 } |
28 } |
29 |
29 |
30 /** |
30 /** |
31 * Retrieves the object meta subtype. |
31 * Retrieves the comment meta subtype. |
32 * |
32 * |
33 * @since 4.9.8 |
33 * @since 4.9.8 |
34 * |
34 * |
35 * @return string 'comment' There are no subtypes. |
35 * @return string 'comment' There are no subtypes. |
36 */ |
36 */ |