get( get_current_user_id() ); $gatherpress_guest_count = intval( $gatherpress_current_user['guests'] ?? 0 ); if ( ! empty( $block ) && isset( $block->context['commentId'] ) ) { $gatherpress_guest_count = intval( get_comment_meta( intval( $block->context['commentId'] ), 'gatherpress_rsvp_guests', true ) ); if ( empty( $gatherpress_guest_count ) ) { return; } } /* Translators: %d is the number of guests for the singular case. */ $gatherpress_singular_label = __( '+%d guest', 'gatherpress' ); /* Translators: %d is the number of guests for the plural case. */ $gatherpress_plural_label = __( '+%d guests', 'gatherpress' ); $gatherpress_guest_text = sprintf( /* Translators: %d is the number of guests. */ _n( '+%d guest', '+%d guests', $gatherpress_guest_count, 'gatherpress' ), $gatherpress_guest_count ); // Render the block content. printf( '