Used By
Used By | Description |
---|---|
wp-includes/link-template.php: wp_get_shortlink() | Returns a shortlink for a post, page, attachment, or site. |
Filters whether to preempt generating a shortlink for the given post.
Returning a truthy value from the filter will effectively short-circuit the shortlink generation process, returning that value instead.
(false|string) Short-circuit return value. Either false or a URL string.
(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.
Version | Description |
---|---|
3.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_get_shortlink