I’m actually building a custom plugin to extend the functionality of Hivepress for my website.
Now question is, will $booking=\HivePress\Models\Bookings::query()->get_by_id(123); be available on my plugin. Or first I need to include some files from Hivepress in my plugin?
Yes, it will be available if HivePress plugin is also active, you can add a function_exists('hivepress') check before any HivePress-specific code to prevent errors if HivePress accidentally gets deactivated.
By the way, are you a developer or you’re building a website for yourself? If you’re a developer, you can join our HivePress Experts program and we’ll recommend your freelancer profile (e.g. via Fiverr, Upwork, Codeable) for customizations. The program will be launched this weekend.