Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: get_footer

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
57 function get_footer( $name = null ) {
58      /**
59       * Fires before the footer template file is loaded.
60       *
61       * @since 2.1.0
62       * @since 2.8.0 $name parameter added.
63       *
64       * @param string|null $name Name of the specific footer file to use. null for the default footer.
65       */
66      do_action( 'get_footer', $name );
67
68      $templates = array();
69      $name      = (string) $name;
70      if ( '' !== $name ) {
71           $templates[] = "footer-{$name}.php";
72      }
73
74      $templates[] = 'footer.php';
75