WordPress.org

Forums

Child Theme functions.php (1 post)

  1. eminozlem
    Member
    Posted 1 year ago #

    Why is child theme's functions.php loaded before the parent's ?
    Doesn't it make better sense if it loaded AFTER the parent's ?
    Since child theme is supposed to make use of / extend / override / customize existing functionality, I thought it'd be better if everything was defined beforehand (functions, globals etc.)
    I know php doesnt care the order, but it's common sense to define functions before they are used.

    So, in short, is there a specific reason why child's functions.php is loaded BEFORE rather than AFTER ?

Topic Closed

This topic has been closed to new replies.

About this Topic