Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: self_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
482  *
483  * Generate a correct link for the atom:self element.
484  *
485  * @package WordPress
486  * @subpackage Feed
487  * @since 2.5
488  */
489 function self_link() {
490      $host = @parse_url(home_url());
491      echo esc_url( apply_filters( 'self_link', set_url_scheme( 'http://' . $host['host'] . wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) );
492 }
493
494 /**
495  * Return the content type for specified feed type.
496  *
497  * @package WordPress
498  * @subpackage Feed
499  * @since 2.8.0
500  */