Changeset 39032
- Timestamp:
- 10/30/2016 06:08:36 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php
r38832 r39032 1 1 <?php 2 /** 3 * REST API: WP_REST_Term_Meta_Fields class 4 * 5 * @package WordPress 6 * @subpackage REST_API 7 * @since 4.7.0 8 */ 2 9 3 10 /** 4 * Manage meta values for terms. 11 * Core class used to manage meta values for terms via the REST API. 12 * 13 * @since 4.7.0 14 * 15 * @see WP_REST_Meta_Fields 5 16 */ 6 17 class WP_REST_Term_Meta_Fields extends WP_REST_Meta_Fields { 18 7 19 /** 8 20 * Taxonomy to register fields for. 9 21 * 22 * @since 4.7.0 23 * @access protected 10 24 * @var string 11 25 */ 12 26 protected $taxonomy; 27 13 28 /** 14 29 * Constructor. 30 * 31 * @since 4.7.0 32 * @access public 15 33 * 16 34 * @param string $taxonomy Taxonomy to register fields for. … … 21 39 22 40 /** 23 * Get the object type for meta.41 * Retrieves the object meta type. 24 42 * 25 * @return string 43 * @since 4.7.0 44 * @access protected 45 * 46 * @return string The meta type. 26 47 */ 27 48 protected function get_meta_type() { … … 30 51 31 52 /** 32 * Get the type for `register_rest_field`.53 * Retrieves the type for register_rest_field(). 33 54 * 34 * @return string 55 * @since 4.7.0 56 * @access public 57 * 58 * @return string The REST field type. 35 59 */ 36 60 public function get_rest_field_type() {
Note: See TracChangeset
for help on using the changeset viewer.