Requiring config from within an MU plugin

[ad_1]

Hi folks,

Fantastic work with the plugin, I’ve been a fan for a long time 🙂

Up until now I’ve been loading the config file from within the themes I build, and that’s been great, but now I’m trying things out in moving much of my base functionality into an MU plugin. Now obviously MU plugins load before regular plugins, and so it seems putting the require_once inside a function that’s hooked to the init action (with the add_action being called within the MU plugin) means it’s trying to load the config file too early. Is there another hook and priority you would recommend in this scenario?

Thanks in advance 🙂

Cheers,
RS

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer