WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

rest_response_link_curies хук-фильтр . WP 4.5.0

Filters extra CURIEs available on REST API responses.

Ищем WP-разработчика! Фулл-тайм, удаленка, хорошая зарплата, соц. пакет. Подробности.
Компания Boosta.

CURIEs allow a shortened version of URI relations. This allows a more usable form for custom relations than using the full URI. These work similarly to how XML namespaces work.

Registered CURIES need to specify a name and URI template. This will automatically transform URI relations into their shortened version. The shortened relation follows the format {name}:{rel}. {rel} in the URI template will be replaced with the {rel} part of the shortened relation.

For example, a CURIE with name example and URI template http://w.org/{rel} would transform a http://w.org/term relation into example:term.

Well-behaved clients should expand and normalise these back to their full URI relation, however some naive clients may not resolve these correctly, so adding new CURIEs may break backward compatibility.


add_filter( 'rest_response_link_curies', 'filter_function_name_6750' );
function filter_function_name_6750( $additional ){
	// filter...

	return $additional;
Additional CURIEs to register with the REST API.

Список изменений

С версии 4.5.0 Введена.

Где вызывается хук

wp-includes/rest-api/class-wp-rest-response.php 289
$additional = apply_filters( 'rest_response_link_curies', array() );

Где используется хук в ядре WordPress

Использование не найдено.