简体   繁体   中英

how to override wordpress parent theme theme options in child theme

I want to override the parent theme option in child theme, so how can I do this in using code inside my child theme. My problem is this, I have use the ready-made word-press theme now, I want the some new options in theme options using my child theme so is there any way to override theme options. I have also include my theme optional file like below:

include (CHILD_DIR.'admin/theme-options-dependency.php');

Thanks in advance.

First of let me know which theme you have used. In theme you don't need to override theme option just check parent theme option code you have find lots of action and filter when theme option register. You just use that filter & action and add your extra option with filter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM