Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_shortlink_wp_head ›

Da3.0.0
Deprecaton/a
wp_shortlink_wp_head ( Nessun parametro )
Definito a:
Codex:

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

Attached to the {@see 'wp_head'} action.



Sorgenti

function wp_shortlink_wp_head() {
	$shortlink = wp_get_shortlink( 0, 'query' );

	if ( empty( $shortlink ) ) {
		return;
	}

	echo "<link rel='shortlink' href='" . esc_url( $shortlink ) . "' />\n";
}