plan->features->analytics ) && $plan_data->plan->features->analytics && Settings::get( Settings::ANALYTICS_SETTINGS ) ); } public function __construct() { $this->register_components(); $this->register_routes(); // this make sure the database table is created and or updated when needed Analytics_Table::install(); } }