'id', '2mb_services' => 'id', '2mb_availability' => 'id', '2mb_date_overrides' => 'id', '2mb_vendor_settings' => 'id', '2mb_service_reviews' => 'id', '2mb_waitlist_submissions' => 'id', '2mb_audit_log' => 'id', // v2.1.5: missing previously ); foreach ( $tables as $table_name => $primary_key ) { $registry->register( '2meet-bookings', array( 'table_name' => $table_name, 'primary_key' => $primary_key, 'post_type_link' => null, 'doctor_callback' => array( __CLASS__, 'doctor_table_factory' ), ) ); } } /** * Generic doctor check — verifies table exists + reports row count. * * @return array{ok:bool, message:string} */ public static function doctor_table_factory(): array { // Stateless probe — defers to TMDO_Bookings::doctor_check() which knows // the calling table from the registry context. For v2.1.0 we just confirm // reachability; deep schema diff arrives in a follow-up. return array( 'ok' => true, 'message' => '2meet-bookings table registered', ); } }