wp/wp-includes/rest-api/class-wp-rest-response.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
   260 				'templated' => true,
   260 				'templated' => true,
   261 			),
   261 			),
   262 		);
   262 		);
   263 
   263 
   264 		/**
   264 		/**
   265 		 * Filters extra CURIEs available on API responses.
   265 		 * Filters extra CURIEs available on REST API responses.
   266 		 *
   266 		 *
   267 		 * CURIEs allow a shortened version of URI relations. This allows a more
   267 		 * CURIEs allow a shortened version of URI relations. This allows a more
   268 		 * usable form for custom relations than using the full URI. These work
   268 		 * usable form for custom relations than using the full URI. These work
   269 		 * similarly to how XML namespaces work.
   269 		 * similarly to how XML namespaces work.
   270 		 *
   270 		 *
   282 		 * full URI relation, however some naive clients may not resolve these
   282 		 * full URI relation, however some naive clients may not resolve these
   283 		 * correctly, so adding new CURIEs may break backward compatibility.
   283 		 * correctly, so adding new CURIEs may break backward compatibility.
   284 		 *
   284 		 *
   285 		 * @since 4.5.0
   285 		 * @since 4.5.0
   286 		 *
   286 		 *
   287 		 * @param array $additional Additional CURIEs to register with the API.
   287 		 * @param array $additional Additional CURIEs to register with the REST API.
   288 		 */
   288 		 */
   289 		$additional = apply_filters( 'rest_response_link_curies', array() );
   289 		$additional = apply_filters( 'rest_response_link_curies', array() );
   290 
   290 
   291 		return array_merge( $curies, $additional );
   291 		return array_merge( $curies, $additional );
   292 	}
   292 	}