wp_shortlink_wp_head

Advertisement

Summery Summery

Injects rel=shortlink into the head if a shortlink is defined for the current page.

Syntax Syntax

wp_shortlink_wp_head()

Description Description

Attached to the ‘wp_head’ action.

Source Source

File: wp-includes/link-template.php

	/**
	 * Filters the shortlink for a post.
	 *
	 * @since 3.0.0
	 *
	 * @param string $shortlink   Shortlink URL.
	 * @param int    $id          Post ID, or 0 for the current post.
	 * @param string $context     The context for the link. One of 'post' or 'query',

Advertisement

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Advertisement

Leave a Reply