This is an approach I did consider already but some of the classes we're not going to work in this approach. That was way back and I'd like to revisit adding class objects to the core instance and make the project easier to work with.
This task is about exploring how will it's going to work in my current design.
We also need to look at classes with extensions being added to the core instance.
The goal is to reduce how often we create new objects and seriously simplify development.
/ @Init
*/
function init() {
ob_start();
require_once um_path . 'core/um-api.php';
require_once um_path . 'core/um-rewrite.php';
require_once um_path . 'core/um-setup.php';
/* initialize UM */
$this->api = new UM_REST_API();
$this->rewrite = new UM_Rewrite();
$this->setup = new UM_Setup();
$this->options = get_option('um_options');
This is an approach I did consider already but some of the classes we're not going to work in this approach. That was way back and I'd like to revisit adding class objects to the core instance and make the project easier to work with.
This task is about exploring how will it's going to work in my current design.
We also need to look at classes with extensions being added to the core instance.
The goal is to reduce how often we create new objects and seriously simplify development.
/ @Init */ function init() {