Title: Overriding Functions within Class
Last modified: January 14, 2020

---

# Overriding Functions within Class

 *  [moosecat](https://wordpress.org/support/users/espurrpuff/)
 * (@espurrpuff)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/overriding-functions-within-class/)
 * Hello!
 * So I know I can override functions in my child theme’s functions.php. However,
   I would like to override certain functions that are within the in/sections/gallery/
   definition.php file. Normally, I think this wouldn’t be an issue, but the functions
   in this file are within the MAKE_Sections_Gallery_Definition class.
 * I haven’t figured out a way to override functions within this file without completely
   copy/pasting and overriding the entire class. I only want to update ~3 functions
   within the class, so it seems silly to override the whole thing?
 * I’m not super proficient in php, but I’ve at least managed to figure out how 
   to get my modifications working…I’d just like to streamline it so I’m not missing
   out on potential updates by overriding entire files worth of functions.
 * Thanks!

The topic ‘Overriding Functions within Class’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/make/1.10.9/screenshot.jpg)
 * Make
 * [Support Threads](https://wordpress.org/support/theme/make/)
 * [Active Topics](https://wordpress.org/support/theme/make/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/make/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/make/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [moosecat](https://wordpress.org/support/users/espurrpuff/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/overriding-functions-within-class/)
 * Status: not resolved