# Automatic Payouts (Expert)

## Adding a Cron Job for Payouts <a href="#statistics-and-payouts-addingacronjobforpayouts" id="statistics-and-payouts-addingacronjobforpayouts"></a>

In order to automate Payouts, you can use Cron Jobs on your server/site.&#x20;

First, you need to edit the **wp-config.php** file and paste the following line of code anywhere above the line that says "That’s all, stop editing! Happy blogging":

```
define('DISABLE_WP_CRON', true);
```

After that, you need to add a cron job from the cron tab in your hosting.

![](/files/-MjThbSgHGX_VD0DPRup)

{% hint style="info" %}
**Example:**\
Cron At 00:00 on day-of-month 1.\
0 0 1 \* \* wget -O /dev/null <https://yoursite.com/wp-cron.php?doing_wp_cron>
{% endhint %}

{% hint style="success" %}
**Here are some manuals for adding cron jobs:**\
cPanel - [**https://www.youtube.com/watch?v=YwpUjz1tMbA**](https://www.youtube.com/watch?v=YwpUjz1tMbA)\
Vesta CP - [**https://www.plothost.com/kb/create-delete-cron-jobs-vesta/**](https://www.plothost.com/kb/create-delete-cron-jobs-vesta/)\
Kinsta Hosting - [**https://kinsta.com/knowledgebase/how-to-write-a-cron-job/**](https://kinsta.com/knowledgebase/how-to-write-a-cron-job/)
{% 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://docs.stylemixthemes.com/masterstudy-lms/paypal-payouts-setup/automatic-payouts.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.
