| 1 |
<?php |
| 2 |
/** |
| 3 |
* Appointment Services catalog bootstrap. |
| 4 |
* |
| 5 |
* @package Booking Calendar |
| 6 |
* @since 11.6.0 |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; |
| 11 |
} |
| 12 |
|
| 13 |
// Resolve translated configuration only after WordPress permits just-in-time translation loading. |
| 14 |
if ( class_exists( 'WPBC_UI_Catalog' ) ) { |
| 15 |
if ( did_action( 'init' ) ) { |
| 16 |
wpbc_appointment_services_register_catalog(); |
| 17 |
} else { |
| 18 |
add_action( 'init', 'wpbc_appointment_services_register_catalog', 20 ); |
| 19 |
} |
| 20 |
} |
| 21 |
|