get_shortlink

get_shortlink

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('get_shortlink') is found 1 times:

  • /wp-includes/link-template.php line 4201
    	 * @param int    $id          Post ID, or 0 for the current post.
    	 * @param string $context     The context for the link. One of 'post' or 'query',
    	 * @param bool   $allow_slugs Whether to allow post slugs in the shortlink. Not used by default.
    	 */
    	return apply_filters( 'get_shortlink', $shortlink, $id, $context, $allow_slugs );
    }
    
    /**
     * Injects rel=shortlink into the head if a shortlink is defined for the current page.
     *
     * Attached to the {@see 'wp_head'} action.