wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_shortlink › Hooks de Filtros WordPress

Desde3.0.0
Obsoleton/a
› apply_filters( 'get_shortlink', $shortlink, $id, $context, $allow_slugs )
Parâmetros: (4)
  • () shortlink Shortlink URL.
    Required: Yes
  • () id Post ID, or 0 for the current post.
    Required: Yes
  • () context The context for the link. One of 'post' or 'query',
    Required: Yes
  • () allow_slugs Whether to allow post slugs in the shortlink. Not used by default.
    Required: Yes
Definido em:
Codex:

Filters the shortlink for a post.





Fonte

return apply_filters( 'get_shortlink', $shortlink, $id, $context, $allow_slugs );