wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
rest_response_link_curies › Hooks de Filtros WordPress
Desde4.5.0
Obsoleton/a
› apply_filters( 'rest_response_link_curies', array()
| Parâmetros: |
|
| Definido em: | |
| Codex: |
Filters extra CURIEs available on REST API responses.
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 normalize these back to their full URI relation, however some naive clients may not resolve these correctly, so adding new CURIEs may break backward compatibility.Funções relacionadas: rest_filter_response_fields, _response_to_rss, rest_filter_response_by_context, get_previous_post_link, get_previous_posts_link, rest_ensure_response
Hooks relacionados: next_posts_link_attributes, previous_posts_link_attributes, respond_link, rest_prepare_plugin, rest_revision_query