> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kiwify.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# all_lessons

> The all_lessons object contains all lessons added to your club.

You can use `all_lessons` to access a lesson by its ID. This returns the <a href="/en/members-area/reference/objects/lesson">Lesson</a> object for the specified lesson. If the lesson isn't found, then `null` is returned.

The all\_lessons object is decided on runtime, so it's not a static object. It's different for each user, based on what group they belong to, if they've classes unlocked now, etc.

## Syntax

```liquid theme={null}
{{ all_lessons[lesson_id] }}
```

## Scope

It's accessible globally, in any template, section or block.

<Frame>
  ```mermaid theme={null}
  graph TD
      A[Global Context] --> B[all_lessons]
      style A fill:#f9f9f9,stroke:#333,stroke-width:2px,color:#333,stroke-dasharray: 5 5
      style B fill:#4B96FF,stroke:#333,stroke-width:1px,color:white,font-weight:bold
      linkStyle 0 stroke:#4B96FF,stroke-width:2px
  ```
</Frame>

## Example

<Columns cols={2}>
  <CodeGroup>
    ```liquid Code theme={null}
    {{ all_lessons["my-lesson"].name }}
    ```

    ```json Data theme={null}
    // Just an example initial data, the data is not real
    {
      "all_lessons": {
        "my-lesson": {
          "name": "How to make an apple pie"
        }
      }
    }
    ```
  </CodeGroup>

  <CodeGroup>
    ```liquid Output theme={null}
    How to make an apple pie
    ```
  </CodeGroup>
</Columns>
