bringapp
    Preparing search index...

    Function getDynamicEntityList

    • Retrieves a dynamic entity list from a WordPress site.

      Type Parameters

      • T = object

        The type of data contained in the dynamic entity list.

      • P = object

      Parameters

      • wpURL: string

        The URL of the WordPress site.

      • entitySlug: string

        The slug of the dynamic entity.

      • entityType: EntityType

        The type of the dynamic entity.

      • options: GetDynamicEntityListOptions = {}

        The options for retrieving the dynamic entity list.

      Returns Promise<
          | {
              entityList: DynamicEntityList<T>;
              params: GetDynamicEntityListParams<P>;
          }
          | { entityList: null; params: GetDynamicEntityListParams<P> },
      >

      A promise that resolves to the dynamic entity list.