| @@ -218,11 +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' ) && ( ! empty( maybe_unserialize( get_bk_option( 'booking_forms_extended' ) ) ) ) ) { | |
| 223 | - $custom_forms_count = maybe_unserialize( get_bk_option( 'booking_forms_extended' ) ); | |
| 224 | - $custom_forms_count = count( $custom_forms_count ); | |
| 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 ) ); | |
| 225 | 224 | } |
| 226 | 225 | ++$custom_forms_count; |
| 227 | 226 | |
| 228 | 227 | $items[] = array( |