plugin = $plugin; $this->hooks(); } /** * Setup hooks if the builder is installed and activated. */ public function hooks() { if ( ! class_exists( 'FLBuilder' ) ) { return; } // Load custom modules. add_action( 'init', array( $this, 'load_modules' ) ); } /** * Loads our custom modules. */ public function load_modules() { // Upcoming Appointments Module require_once ( __DIR__ . '/beaver-builder/modules/upcoming-appointments/upcoming-appointments.php' ); // Booking Form Module require_once ( __DIR__ . '/beaver-builder/modules/booking/booking.php' ); } }