# Actions

Our WP Cloud Plugins offer several WordPress Actions that allow developers to execute custom code at specific points during the plugin's lifecycle. These actions provide an opportunity to interact with the plugin, trigger additional functionality, or modify behavior without altering the core code. By hooking into these actions, you can easily extend the plugin's capabilities to suit your needs.

## Slugs

The plugin provides several WordPress actions to hook into its functionality. These actions use a `{slug}` placeholder, which you should replace with the slug corresponding to your plugin variant:

* `shareonedrive` for Share-One-Drive **(OneDrive & SharePoint)**
* `useyourdrive` for **Use-your-Drive (Google Drive)**
* `outofthebox` for **Out-of-the-Box (Dropbox)**
* `letsbox` for **Lets-Box (Box)**

For example, the action  `{slug}_after_module` for when a module is rendered would be `useyourdrive_after_module` for **Use-your-Drive.**

## Available actions

### &#x20; <mark style="background-color:orange;">**{slug}\_before\_module()**</mark> &#x20;

Fires before a module module has been rendered.

### &#x20; <mark style="background-color:orange;">**{slug}\_after\_module()**</mark> &#x20;

Fires after a module module has been rendered.

{% hint style="info" %}
This information is still being completed...
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://wpcloudplugins.gitbook.io/docs/developers/actions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
