Changeset 40328 for branches/4.7/src/wp-includes/class-wp-taxonomy.php
- Timestamp:
- 03/24/2017 07:03:14 PM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-includes/class-wp-taxonomy.php
r40083 r40328 186 186 */ 187 187 public $update_count_callback; 188 189 /** 190 * Whether this taxonomy should appear in the REST API. 191 * 192 * Default false. If true, standard endpoints will be registered with 193 * respect to $rest_base and $rest_controller_class. 194 * 195 * @since 4.7.4 196 * @access public 197 * @var bool $show_in_rest 198 */ 199 public $show_in_rest; 200 201 /** 202 * The base path for this taxonomy's REST API endpoints. 203 * 204 * @since 4.7.4 205 * @access public 206 * @var string|bool $rest_base 207 */ 208 public $rest_base; 209 210 /** 211 * The controller for this taxonomy's REST API endpoints. 212 * 213 * Custom controllers must extend WP_REST_Controller. 214 * 215 * @since 4.7.4 216 * @access public 217 * @var string|bool $rest_controller_class 218 */ 219 public $rest_controller_class; 188 220 189 221 /** … … 255 287 'query_var' => $this->name, 256 288 'update_count_callback' => '', 289 'show_in_rest' => false, 290 'rest_base' => false, 291 'rest_controller_class' => false, 257 292 '_builtin' => false, 258 293 );
Note: See TracChangeset
for help on using the changeset viewer.