[wp-trac] [WordPress Trac] #40892: Documentation for `get_header` and `get_footer` actions are not accurate.

WordPress Trac noreply at wordpress.org
Wed May 31 01:37:59 UTC 2017


#40892: Documentation for `get_header` and `get_footer` actions are not accurate.
--------------------------+-----------------------------
 Reporter:  desrosj       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  low           |  Milestone:  Awaiting Review
Component:  Themes        |    Version:
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 The `get_header` and `get_footer` action hook Docblocks both say "The hook
 allows a specific footer/header template file to be used in place of the
 default footer template file."

 This is not entirely accurate. While the hooks allow you to do something
 before the behavior of `get_header()` or `get_footer()`, it does not allow
 you to prevent the default output of these functions as the description
 suggests.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40892>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list