get_services() as $service ) { $service::register(); } } /** * Get services. * * @return array */ private function get_services(): array { return apply_filters( 'notifypress_register_services', array( Services\Menus\Menus::class, Services\WC\WC::class, Services\NewPost\NewPost::class, Services\Settings\Settings::class, Services\NotifyPress\NotifyPress::class, Services\PWA\PWA::class, ) ); } /** * Run the app. * * @return void */ public static function run(): void { new self(); } }