Easy Way to Control and View WordPress Cron jobs PowerPoint PPT Presentation

presentation player overlay
About This Presentation
Transcript and Presenter's Notes

Title: Easy Way to Control and View WordPress Cron jobs


1
Guided by How to View and Control WordPress
Cron Jobs?
2
What is WordPress Cron Jobs?
  • The cron is a technique which is used commands to
    run on scheduled time. This technique is used by
    many web servers.
  • WordPress has own built-in cron, they allows it
    to perform scheduled tasks like deleting old
    comments from trash, checking for updates etc.
  • Plugins can also use it to complete the task
    specified by you. For example your WordPress
    Backup plugin can use it to create backups on
    given schedule.
  • Use of WordPress Cron by the plugin can slow down
    your website.

3
How to view and control WordPress cron jobs?
  • You need to install the WP control plugin and
    activate it. After activation, you have to go to
    the tool gt cron event page to control cron
    setting.
  • Now, you will see all events schedule list which
    runs on your website by using WordPress cron
    system.
  • In the first column, you will see the name of the
    hook which runs the corn. It gives you a hint
    that what this event does. But WordPress plugins
    can or cant be used their own prefixes for their
    hooks.
  • When cron will run next and the time interval
    between the the next run.
  • The last column allows you to delete, edit or run
    an event.

4
  • You should check the settings of the plugin. If
    there is an option to control it.
  • If there is not any option you can click on edit
    to change it which is the next cron event.
  • When you click on the edit button, it will open
    the Modify Cron Event tab.
  • In this tab you can change that how much time you
    want to run the event.
  • Now, save your changes by clicking on save
    setting.

5
Adding Your Own Cron Events in WordPress
  • You can add your own cron events in WordPress. WP
    Control plugin make it very simple.
  • For this, go to the tolls gt cron events page and
    scroll down to the Add Cron Events page.
  • You have to give a name for your event. The hook
    name does not contain spaces or special
    characters.

6
  • If the function requires arguments which you want
    to run then you can provide those arguments. Next
    time when you want to be run cron then you have
    to tell the WordPress.
  • You can enter now, it will trigger cron
    immediately.
  • At last, you need to choose a schedule. You can
    choose hourly, daily or weekly.
  • After that, click the add cron event button to
    save your changes.
  • Now, you will see that your event will see in the
    event list.
  • At this time, it will do nothing because you have
    not told WordPress that what to do and when it
    begins.
  • You will have to add your hook and function which
    runs when cron hook is triggered.
  • In this use your own email address. This function
    will send you a test email when cron is running.
  • Now you can test it. Just click on the run now
    link next to your event.

7
conclusion
  • Now its time to wrap all.
  • We have discussed Easy way to View and Control
    WordPress Cron Jobs. we hope this post will help
    you.
  • For more info click on the link below
  • How to View and Control WordPress Cron Jobs?
Write a Comment
User Comments (0)
About PowerShow.com