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
2577      $link = str_replace(array("\r", "\n", "\t"),  '', $link);
2578
2579      /**
2580       * Filter the Press This bookmarklet link.
2581       *
2582       * @since 2.6.0
2583       *
2584       * @param string $link The Press This bookmarklet link.
2585       */
2586      return apply_filters( 'shortcut_link', $link );
2587 }
2588
2589 /**
2590  * Retrieve the home url for the current site.
2591  *
2592  * Returns the 'home' option with the appropriate protocol, 'https' if
2593  * {@see is_ssl()} and 'http' otherwise. If `$scheme` is 'http' or 'https',
2594  * `is_ssl()` is overridden.
2595  *