Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: shortcut_link

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2916      $link = str_replace( array( "\r", "\n", "\t" ),  '', $link );
2917
2918      /**
2919       * Filter the Press This bookmarklet link.
2920       *
2921       * @since 2.6.0
2922       *
2923       * @param string $link The Press This bookmarklet link.
2924       */
2925      return apply_filters( 'shortcut_link', $link );
2926 }
2927
2928 /**
2929  * Retrieve the URL for the current site where the front end is accessible.
2930  *
2931  * Returns the 'home' option with the appropriate protocol, 'https' if
2932  * {@see is_ssl()} and 'http' otherwise. If `$scheme` is 'http' or 'https',
2933  * `is_ssl()` is overridden.
2934  *