Title: Custom preheaders
Last modified: August 21, 2016

---

# Custom preheaders

 *  Resolved [Rocco Tripaldi](https://wordpress.org/support/users/roccotripaldi/)
 * (@roccotripaldi)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/custom-preheaders/)
 * Hello,
 * I needed to customize the preheader file, checkout.php
 * I see that i can customize a page by putting a template file in my theme, but
   there is no way currently to do the same for preheader files.
 * I ended up modifying your core file /includes/init.php to suit my needs.
    If 
   you’d like, I could send you the code. It might be good to include this in the
   next version of PMP.
 * Do you have a public repository for this project?
 * [http://wordpress.org/plugins/paid-memberships-pro/](http://wordpress.org/plugins/paid-memberships-pro/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [Rocco Tripaldi](https://wordpress.org/support/users/roccotripaldi/)
 * (@roccotripaldi)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/custom-preheaders/#post-4121463)
 * I just found your Repo on git hub. I’ll send you a pull request.
 *  [Slocum Studio](https://wordpress.org/support/users/slocumstudio/)
 * (@slocumstudio)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/custom-preheaders/#post-4121606)
 * Hi Rocco,
 * Thank you, we do see the pull request and will be reviewing it shortly. For anyone
   else wondering, here is the pull request: [https://github.com/strangerstudios/paid-memberships-pro/pull/66](https://github.com/strangerstudios/paid-memberships-pro/pull/66)
 * Thank You
 *  Plugin Author [Jason Coleman](https://wordpress.org/support/users/strangerstudios/)
 * (@strangerstudios)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/custom-preheaders/#post-4121607)
 * What were you trying to customize in the preheader? Typically you can use a different
   hook to customize something before the page loads. i.e. just use the “init” hook
   directly or another hook in the checkout.php preheader.
 *  Plugin Author [Jason Coleman](https://wordpress.org/support/users/strangerstudios/)
 * (@strangerstudios)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/custom-preheaders/#post-4121608)
 * Following up on GitHub: [https://github.com/strangerstudios/paid-memberships-pro/pull/66](https://github.com/strangerstudios/paid-memberships-pro/pull/66)
 *  Thread Starter [Rocco Tripaldi](https://wordpress.org/support/users/roccotripaldi/)
 * (@roccotripaldi)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/custom-preheaders/#post-4121609)
 * I have three custom inputs on my checkout.php, including a file upload. I need
   to validate the upload before registration, and upon registration, add those 
   three fields as user_meta for the new user.
 *  Plugin Author [Jason Coleman](https://wordpress.org/support/users/strangerstudios/)
 * (@strangerstudios)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/custom-preheaders/#post-4121641)
 * BTW, we have a plugin to help facilitate this kind of thing:
    [https://github.com/strangerstudios/pmpro-register-helper](https://github.com/strangerstudios/pmpro-register-helper)
 * It doesn’t have a file upload field type, but it would be interesting to add 
   one.
 * You can use it for reference.
 * Validate the upload/field:
    [https://github.com/strangerstudios/pmpro-register-helper/blob/master/pmpro-register-helper.php#L404](https://github.com/strangerstudios/pmpro-register-helper/blob/master/pmpro-register-helper.php#L404)
 * Add the fields as user meta:
    [https://github.com/strangerstudios/pmpro-register-helper/blob/master/pmpro-register-helper.php#L348](https://github.com/strangerstudios/pmpro-register-helper/blob/master/pmpro-register-helper.php#L348)
 * The register helper code is complicated by the fact that it’s looping through
   defined fields, etc. Perhaps a more straight forward example is here:
    [https://github.com/strangerstudios/pmpro-shipping/blob/master/pmpro-shipping.php#L343](https://github.com/strangerstudios/pmpro-shipping/blob/master/pmpro-shipping.php#L343)
   [https://github.com/strangerstudios/pmpro-shipping/blob/master/pmpro-shipping.php#L143](https://github.com/strangerstudios/pmpro-shipping/blob/master/pmpro-shipping.php#L143)

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Custom preheaders’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paid-memberships-pro_f1dacb.svg)
 * [Paid Memberships Pro - Content Restriction, User Registration, & Paid Subscriptions](https://wordpress.org/plugins/paid-memberships-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paid-memberships-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paid-memberships-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/paid-memberships-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paid-memberships-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paid-memberships-pro/reviews/)

## Tags

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

 * 6 replies
 * 3 participants
 * Last reply from: [Jason Coleman](https://wordpress.org/support/users/strangerstudios/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/custom-preheaders/#post-4121641)
 * Status: resolved