WordPress.org

Make WordPress Core

Changeset 39032


Ignore:
Timestamp:
10/30/2016 06:08:36 PM (4 years ago)
Author:
DrewAPicture
Message:

Docs: Add much more complete and syntactically correct documentation throughout the WP_REST_Term_Meta_Fields class.

Props Soean, mrahmadawais, flixos90.
See #38398.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php

    r38832 r39032  
    11<?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 */
    29
    310/**
    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
    516 */
    617class WP_REST_Term_Meta_Fields extends WP_REST_Meta_Fields {
     18
    719    /**
    820     * Taxonomy to register fields for.
    921     *
     22     * @since 4.7.0
     23     * @access protected
    1024     * @var string
    1125     */
    1226    protected $taxonomy;
     27
    1328    /**
    1429     * Constructor.
     30     *
     31     * @since 4.7.0
     32     * @access public
    1533     *
    1634     * @param string $taxonomy Taxonomy to register fields for.
     
    2139
    2240    /**
    23      * Get the object type for meta.
     41     * Retrieves the object meta type.
    2442     *
    25      * @return string
     43     * @since 4.7.0
     44     * @access protected
     45     *
     46     * @return string The meta type.
    2647     */
    2748    protected function get_meta_type() {
     
    3051
    3152    /**
    32      * Get the type for `register_rest_field`.
     53     * Retrieves the type for register_rest_field().
    3354     *
    34      * @return string
     55     * @since 4.7.0
     56     * @access public
     57     *
     58     * @return string The REST field type.
    3559     */
    3660    public function get_rest_field_type() {
Note: See TracChangeset for help on using the changeset viewer.