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
3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 | 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. |