Filters the shortlink for a post.
$shortlinkstring
$idint
$contextstring
'post' or 'query',$allow_slugsbool
return apply_filters( 'get_shortlink', $shortlink, $id, $context, $allow_slugs );
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_shortlink