wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



get_shortlink › WordPress Filter Hooks

Da3.0.0
Deprecaton/a
apply_filters( 'get_shortlink', $shortlink, $id, $context, $allow_slugs )
Parametri: (4)
  • (string) $shortlink Shortlink URL.
    Richiesto:
  • (int) $id Post ID, or 0 for the current post.
    Richiesto:
  • (string) $context The context for the link. One of 'post' or 'query',
    Richiesto:
  • (bool) $allow_slugs Whether to allow post slugs in the shortlink. Not used by default.
    Richiesto:
Definito a:
Codex:

Filters the shortlink for a post.





Sorgenti

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