WordPress at a glance
filter is not described

get_shortlink filter-hook . WP 3.0.0

Filters the shortlink for a post.


add_filter( 'get_shortlink', 'filter_function_name_8841', 10, 4 );
function filter_function_name_8841( $shortlink, $id, $context, $allow_slugs ){
	// filter...

	return $shortlink;
Shortlink URL.
Post ID, or 0 for the current post.
The context for the link. One of 'post' or 'query',
Whether to allow post slugs in the shortlink. Not used by default.


Since 3.0.0 Introduced.

Where the hook is called

wp-includes/link-template.php 3902
return apply_filters( 'get_shortlink', $shortlink, $id, $context, $allow_slugs );

Where the hook is used (in WP core)

Usage not found!