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
2385      $link = str_replace(array("\r", "\n", "\t"),  '', $link);
2386
2387      /**
2388       * Filter the Press This bookmarklet link.
2389       *
2390       * @since 2.6.0
2391       *
2392       * @param string $link The Press This bookmarklet link.
2393       */
2394      return apply_filters( 'shortcut_link', $link );
2395 }
2396
2397 /**
2398  * Retrieve the home url for the current site.
2399  *
2400  * Returns the 'home' option with the appropriate protocol, 'https' if
2401  * is_ssl() and 'http' otherwise. If $scheme is 'http' or 'https', is_ssl() is
2402  * overridden.
2403  *