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 );
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 4.9.0 | This function has been deprecated. |
| 2.6.0 | Introduced. |