Title: why actually do we need this function in header.php file
Last modified: August 21, 2016

---

# why actually do we need this function in header.php file

 *  Resolved [Tara Prasad Gurung](https://wordpress.org/support/users/tarap/)
 * (@tarap)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/why-actually-do-we-need-this-function-in-headerphp-file/)
 * </head>
    <body <?php body_class(); ?>> <div id=”page” class=”hfeed site”> <?php
   do_action( ‘before’ ); ?>
 * i have copied some line of a code from header.php so What I normally find on 
   header.php file is this function **<?php do_action( ‘before’ ); ?>** .Please 
   someone tell me why do we need this and what is it doing .

The topic ‘why actually do we need this function in header.php file’ is closed to
new replies.

## Tags

 * [header](https://wordpress.org/support/topic-tag/header/)

 * 0 replies
 * 1 participant
 * Last reply from: [Tara Prasad Gurung](https://wordpress.org/support/users/tarap/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/why-actually-do-we-need-this-function-in-headerphp-file/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
