# 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.

![](https://691205473-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MDTL6WUldKvxQaP8jzz%2F-MjTgKOkp-AZIY6po-Nx%2F-MjThbSgHGX_VD0DPRup%2Fcron_job.png?alt=media\&token=9a9640f0-d82c-4fa5-9410-3eb498b04222)

{% 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 %}
