> For the complete documentation index, see [llms.txt](https://docs.homescriptone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.homescriptone.com/wordpress-plugins/doko-bundle-builder-the-ultimate-dynamic-bundle-builder-for-woocommerce/hooks-for-developers/public-hooks.md).

# Public Hooks

**Actions :**  &#x20;

NA

**Filters :**&#x20;

* ***doko\_display\_variations\_as\_many :*** \
  This filter allows you to decide whether variations of products on the bundle page should be displayed as a single product or multiple products.

  <figure><img src="/files/Mt9YxftdMgZKOAOSkQ6B" alt=""><figcaption></figcaption></figure>

* ***doko\_skip\_product\_in\_shortcode\_loop :*** \
  This filter allows you to decide whether a specific product in the bundle shouldn't be displayed.<br>

  <figure><img src="/files/vNdFp1CyLe0mW4pdtVN8" alt=""><figcaption></figcaption></figure>

* ***hs\_doko\_btn\_add\_to\_box\_link :*** \
  This filter allows you to customise the "Add to Box" button displayed in the various bundle steps.<br>

  <figure><img src="/files/wPBKqYNZeVOAeur5BGyF" alt=""><figcaption></figcaption></figure>

* ***doko\_get\_total\_price :*** \
  This filter allows you to change the bundle total price and include custom fees after customers has added to the cart their products.<br>

  <figure><img src="/files/3q96mjOMDWTrcSoTHMaW" alt=""><figcaption></figcaption></figure>

* ***doko\_add\_box\_contents :*** \
  This filter allows you to add a custom product with a custom price to the bundle present in the WooCommerce cart and checkout.<br>

  <figure><img src="/files/7GOH96j81kj7yEKf9f9g" alt=""><figcaption></figcaption></figure>

* **doko\_cart\_contents\_element :** \
  This filter allows you to include custom information before the bundle is added to the cart item object. Whether you want to add a custom product or another option to the basket, use this.

<figure><img src="/files/W33wyvqIRcj4KsN0VQJw" alt=""><figcaption></figcaption></figure>

* ***doko\_js\_data\_boxpage :*** \
  This filter allows you to add a custom variable or secret word to the bundle page. To use it, just get the value of your custom variable from ***doko\_object***.<br>

  <figure><img src="/files/0cLSKl6QxNU0Ot1M2FvX" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.homescriptone.com/wordpress-plugins/doko-bundle-builder-the-ultimate-dynamic-bundle-builder-for-woocommerce/hooks-for-developers/public-hooks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
