WordPress at a glance
filter is not described

pre_get_shortlink filter-hook . WP 3.0.0

Filters whether to preempt generating a shortlink for the given post.

Passing a truthy value to the filter will effectively short-circuit the shortlink-generation process, returning that value instead.

Usage

add_filter( 'pre_get_shortlink', 'filter_function_name_1419', 10, 4 );
function filter_function_name_1419( $return, $id, $context, $allow_slugs ){
	// filter...

	return $return;
}
$return(true/false/string)
Short-circuit return value. Either false or a URL string.
$id(int)
Post ID, or 0 for the current post.
$context(string)
The context for the link. One of 'post' or 'query',
$allow_slugs(true/false)
Whether to allow post slugs in the shortlink.

Where the hook is called

wp_get_shortlink()
pre_get_shortlink
wp-includes/link-template.php 3610
$shortlink = apply_filters( 'pre_get_shortlink', false, $id, $context, $allow_slugs );

Where the hook is used (in WP core)

Does not used.