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 );
}


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