Used By
Used By | Description |
---|---|
wp-includes/link-template.php: wp_get_shortlink() | Returns a shortlink for a post, page, attachment, or site. |
Filters the shortlink for a post.
(string) Shortlink URL.
(int) Post ID, or 0 for the current post.
(string) The context for the link. One of 'post' or 'query',
(bool) Whether to allow post slugs in the shortlink. Not used by default.
Version | Description |
---|---|
3.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_shortlink