Title: Where to place PHP Code?
Last modified: February 2, 2019

---

# Where to place PHP Code?

 *  Resolved [Foliferous](https://wordpress.org/support/users/revs/)
 * (@revs)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/where-to-place-php-code-2/)
 * Hi community!
 * I would like to add a Privacy Policy checkbox to the default WP registration 
   Form. I have found this here: [https://wpbrigade.com/add-privacy-policy-checkbox-registration-form/](https://wpbrigade.com/add-privacy-policy-checkbox-registration-form/)
 * Now I am just wondering – where do I paste this code? Does all of that go into
   a functions.php file (in a child theme I guess?) or is it saved as a plugin?
 * Thank you!

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

 *  [Naveen Kharwar](https://wordpress.org/support/users/naveenkharwar/)
 * (@naveenkharwar)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/where-to-place-php-code-2/#post-11159778)
 * Hey
    Yes, you have to place all the codes in functions.php file (in a child theme
   if you have ).
 *  Thread Starter [Foliferous](https://wordpress.org/support/users/revs/)
 * (@revs)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/where-to-place-php-code-2/#post-11161247)
 * Okay, thank you Naveen. 🙂

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

The topic ‘Where to place PHP Code?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Foliferous](https://wordpress.org/support/users/revs/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/where-to-place-php-code-2/#post-11161247)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
