| @@ -218,15 +218,10 @@ | ||
| 218 | 218 | // == Pro Advanced == - Import booking forms for == Super Booking Admin == user ( user_id = 0 ). |
| 219 | 219 | if ( class_exists( 'wpdev_bk_personal' ) ) { |
| 220 | 220 | |
| 221 | 221 | $custom_forms_count = 0; |
| 222 | - if ( class_exists( 'wpdev_bk_biz_m' ) ) { | |
| 223 | - $booking_forms_extended = get_bk_option( 'booking_forms_extended' ); | |
| 224 | - $booking_forms_extended = ( ! empty( $booking_forms_extended ) ) ? maybe_unserialize( $booking_forms_extended ) : array(); | |
| 225 | - | |
| 226 | - if ( is_array( $booking_forms_extended ) ) { | |
| 227 | - $custom_forms_count = count( $booking_forms_extended ); | |
| 228 | - } | |
| 222 | + if ( function_exists( 'wpbc_bfb_get_legacy_custom_forms_for_owner' ) ) { | |
| 223 | + $custom_forms_count = count( wpbc_bfb_get_legacy_custom_forms_for_owner( 0 ) ); | |
| 229 | 224 | } |
| 230 | 225 | ++$custom_forms_count; |
| 231 | 226 | |
| 232 | 227 | $items[] = array( |