wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



get_shortlink › Filtr WordPress Hooks

Od3.0.0
Przestarzałyn/a
apply_filters( 'get_shortlink', $shortlink, $id, $context, $allow_slugs )
Parametry: (4)
  • (string) $shortlink Shortlink URL.
    Wymagane: Tak
  • (int) $id Post ID, or 0 for the current post.
    Wymagane: Tak
  • (string) $context The context for the link. One of 'post' or 'query',
    Wymagane: Tak
  • (bool) $allow_slugs Whether to allow post slugs in the shortlink. Not used by default.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the shortlink for a post.





Źródło

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