CodeExplorer handle_locations example
do_action( "rest_insert_{
$this->taxonomy
}",
$term,
$request, true
);
$schema =
$this->
get_item_schema();
if ( !
empty( $schema['properties'
]['meta'
] ) &&
isset( $request['meta'
] ) ) { $meta_update =
$this->meta->
update_value( $request['meta'
],
$term->term_id
);
if ( is_wp_error( $meta_update ) ) { return $meta_update;
} } $locations_update =
$this->
handle_locations( $term->term_id,
$request );
if ( is_wp_error( $locations_update ) ) { return $locations_update;
} $this->
handle_auto_add( $term->term_id,
$request );
$fields_update =
$this->
update_additional_fields_for_object( $term,
$request );
if ( is_wp_error( $fields_update ) ) { return $fields_update;
}