How to replace files from wordpress theme using a custom plugin?


I’m making a custom plugin that can replace theme’s header.php with plugin’s header.php how can I do that?
The theme I’m using is understrap and header.php file in placed in theme’s directory and plugin’s header.php in inside includes/header.php.
(I’m a new developer and don’t have much experience in wordpress functions please answer me in detail if possible)

Sumit Purohit 3 months 0 Answers 12 views 0

Leave an answer