Title: How does functions file work?
Last modified: August 20, 2016

---

# How does functions file work?

 *  [rwilki](https://wordpress.org/support/users/rwilki/)
 * (@rwilki)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/how-does-functions-file-work/)
 * I’m adding some heavy lifting to my functions file but I’m wondering if there’s
   a better way to do this. I’m going to add some functions relating to shipping
   in my ecommerce site. It will be looking up the buyer’s shipping state or zip
   and hiding a shipping option if set as excluded.
 * Since I only need this function on the checkout page(s) if the code is in the
   functions file, is it running every time any page is loaded?
 * Is a plugin a better solution or do they both actively run from every page load?
 * Thanks,
    Bob

The topic ‘How does functions file work?’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [rwilki](https://wordpress.org/support/users/rwilki/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/how-does-functions-file-work/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
