WordPress at Your Fingertips
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_7165', 10, 4 );
function filter_function_name_7165( $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 4045
return apply_filters( 'get_shortlink', $shortlink, $id, $context, $allow_slugs );

Where in WP core the hook is used WordPress

Usage not found.