Run function with linux cron job in WordPress

You’re missing one key component.

Add this to your wp-config.php: define( 'DISABLE_WP_CRON', true );

Here are some other helpful constants for your wp-config.php: https://gist.github.com/MikeNGarrett/e20d77ca8ba4ae62adf5

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)