Warning: This function has been deprecated.

get_shortcut_link() WordPress Function

The get_shortcut_link() function in WordPress allows you to get a shortened URL for a post or page. This is useful for sharing links on social media or other places where you want to save space.

get_shortcut_link() #

Retrieves the Press This bookmarklet link.


Source

File: wp-includes/deprecated.php

function get_shortcut_link() {
	_deprecated_function( __FUNCTION__, '4.9.0' );

	$link = '';

	/**
	 * Filters the Press This bookmarklet link.
	 *
	 * @since 2.6.0
	 * @deprecated 4.9.0
	 *
	 * @param string $link The Press This bookmarklet link.
	 */
	return apply_filters( 'shortcut_link', $link );
}


Top ↑

Changelog

Changelog
VersionDescription
4.9.0This function has been deprecated.
2.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More