# Overwrite admin-config.php in child theme

**URL:** <https://www.phphelp.com/t/overwrite-admin-config-php-in-child-theme/31850>\
**Category:** Help with WordPress\
**Created:** [May 12, 2020, 2:02pm UTC](https://www.phphelp.com/t/overwrite-admin-config-php-in-child-theme/31850 "2020-05-12T14:02:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robin3](https://www.phphelp.com/letter_avatar_proxy/v4/letter/r/4da419/32.png) [@Robin3](https://www.phphelp.com/u/Robin3)\
**Post date:** [May 12, 2020, 2:02pm UTC](https://www.phphelp.com/t/overwrite-admin-config-php-in-child-theme/31850/1 "2020-05-12T14:02:40Z")

</div>

Hi all,

I am a quite beginner in php and I was wondering to ask some help to have the admin-config.php i just placed in my child theme to overwrite the parent one. I also added this in the child function.php file  
require\_once ( get\_template\_directory() . ‘/include/admin-config.php’ );  
This was the same hook present in the parents function.

I did all this and made sure that everything was in the right place but i still cannot manage to link it right.  
Do you folks have any suggestion?

Thanks everyone for the open support!

Robin
