How to setup cron job in wordpress without plugin ?

If you are looking for a way to execute commands and tasks on your WordPress site several times a day, something like a specific day, week, month, etc., you’re struggling to accomplish this functionality, don’t worry, I will tell you how to overcome this with a WordPress cron jobs, a cron job is a task that is set to run at a specified interval.