Changeset 43737 for branches/5.0/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
- Timestamp:
- 10/17/2018 11:19:02 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r43714 r43737 457 457 $request->set_param( 'context', 'view' ); 458 458 459 /** 460 * Fires after a single term is completely created or updated via the REST API. 461 * 462 * The dynamic portion of the hook name, `$this->taxonomy`, refers to the taxonomy slug. 463 * 464 * @since 5.0.0 465 * 466 * @param WP_Term $term Inserted or updated term object. 467 * @param WP_REST_Request $request Request object. 468 * @param bool $creating True when creating a term, false when updating. 469 */ 470 do_action( "rest_after_insert_{$this->taxonomy}", $term, $request, true ); 471 459 472 $response = $this->prepare_item_for_response( $term, $request ); 460 473 $response = rest_ensure_response( $response ); … … 545 558 546 559 $request->set_param( 'context', 'view' ); 560 561 /** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php */ 562 do_action( "rest_after_insert_{$this->taxonomy}", $term, $request, false ); 547 563 548 564 $response = $this->prepare_item_for_response( $term, $request );
Note: See TracChangeset
for help on using the changeset viewer.