Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: loginout

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

This hook occurs 2 times in this file.

Line Code
279
280      if ( $echo ) {
281           /**
282            * Filter the HTML output for the Log In/Log Out link.
283            *
284            * @since 1.5.0
285            *
286            * @param string $link The HTML link content.
287            */
288           echo apply_filters( 'loginout', $link );
289      } else {
290           /** This filter is documented in wp-includes/general-template.php */
291           return apply_filters( 'loginout', $link );
292      }
293 }
294
295 /**
296  * Returns the Log Out URL.
297  *
298  * Returns the URL that allows the user to log out of the site.
299  *
300  * @since 2.7.0