Google

Cyb3r Drag0nz Team Shell

Server : Apache
System : Linux webd003.cluster126.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : atwiofrxug (73666)
PHP Version : 8.4.10
Disable Functions : _dyuweyrj4,_dyuweyrj4r,dl
Current Directory : /home/atwiofrxug/mylittletelaviv/wp-content/plugins/cookiebot/documentation/
Directory Status: Writeable | Document Root: Writeable

Upload File







Viewing: /home/atwiofrxug/mylittletelaviv/wp-content/plugins/cookiebot/documentation/how-to-add-new-addon.md

# How to add new addon

Steps
---

1. Add new addon to addons.json
2. Create a directory in addons/controller/addons
3. Create a class in that new directory (copy class from another addon and adjust the namespace, classname and methods.)
4. Edit 'load_configuration' method. That is the only method that needs to be worked on to block the cookies. You can create your own method from there.
5. Test
6. Create integration test if you did use dependencies from the addon plugin. (We run daily tests to see if the dependencies from the addons plugin are still valid.)
7. Send a pull-request in github

Example
---
1. New addon to addons.json

    ```json
    "Add_To_Any": {
        "class": "cookiebot_addons\\controller\\addons\\add_to_any\\Add_To_Any"
      },
    ```

2. Create directory 'add_to_any' in controller/addons

3. Create a class 'Add_To_Any' in 'add_to_any' directory (copy class from another addon and rename everything accordingly)

5. Go to 'load_configuration' method and rename the callback function to make it give more sense. Write your cookie-blocking logic in that function. You can find more information about how to block cookies in [how-to-block-cookies](how-to-block-cookies.md).

6. Test if the cookies are blocked.

7. Create integration test for the addon dependencies: https://github.com/CybotAS/CookiebotAddons/blob/develop/tests/integration/addons/test-add-to-any.php

8. Send a pull-request to our github repository.

Cyb3r Drag0nz Team • Google Edition