You don’t need a plugin for this, a complete cron system is built into wordpress. If you don’t do anything, then wordpress is already running a lazy man’s cron job. Which means that it’s using your page hits to run the cron as close to your schedule as possible.
Or you can choose to disable the lazy man cron job and setup the wp-cron.php file to run every five minutes with a real cron job. Once that’s done, then you can do all of your scheduling within wordpress.
Get started here: http://codex.wordpress.org/Category:WP-Cron_Functions
register_activation_hook(__FILE__, 'my_activation'); add_action('my_hourly_event', 'do_this_hourly'); function my_activation() { wp_schedule_event(time(), 'hourly', 'my_hourly_event'); } function do_this_hourly() { // do something every hour }
Related Posts:
- Uncaught Error: Call to undefined function wp_generate_attachment_metadata() @ wp-cron
- Schedule WordPress Auto-Updates to only run during business hours
- What happens when wp_cron is deactivated in WordPress?
- Updating WooCommerce variable product stock issue
- wp_schedule_event / cron_schedules – custom recurrence time not working in Plugin
- wp_schedule_single_event function not working
- How ( and mostly at what time ) can i prevent the alternate cron from running?
- Why is wp-cron only executing on page visit?
- After plugin options changed hook
- Certain actions failing when run through cron
- Does using WP-cron make the site slower for the user?
- wp_schedule_single_event not working: cron job is triggered but nothing gets executed
- How does task scheduler plugin implements cron that is not dependent on page load request? [closed]
- How to set intervals in cron jobs?
- WordPress Console Application (ability to excecute a custom function via crontab only)
- Plugin scheduled event not working
- Switch from wp-cron to a server cron job
- What causes wp_schedule_single_event to fire off?
- How can i find the cron jobs that run on my site and then move them to the server side?
- WordPress cron job running more than once
- WP Import All Multiple Dynamic Link Imports
- Cron: Update four post at Hour
- Activate Plugin Automatically After Set Time
- Cron task gets removed from the schedule
- my hook or my function wont run in the cronjob
- Cron job shedules replace?
- WP_CRON issue with UTC and local time
- Run a Change Role Cron Job on WordPress via cPanel
- Better way to run heavy scripts using WordPress database
- Cron job emails blank
- WordPress Cron function is not working
- WordPress crob job performance
- Adding custom cron_schedule prior to wp_schedule_event
- How to set-up multiple cron task with wp_schedule_event so that they do not overlap?
- Redesigning Custom Post Type “Add New” page
- Can we hook a static method of a class to add_action inside that class?
- How can I remove a hooked action created by a plugin?
- How can I add a custom header to a custom template in a plugin without using the theme folders
- Trying to avoid including wp-load.php
- Stackoverflow type of badge plugin giving warnings in WordPress 3.5
- Custom values are not translated
- How to include admin-ajax when loading external javascript
- prefix table and plugins
- Remove action from a plugin class, forced to use global instance
- Duplicate a Multi-Site Subdomain
- How to get last_updated and newest_blogs in WP 3.0
- Error uploading plugin zip file
- Avoiding Duplicate function names in Post Loop (WP_Footer script)
- How to add page using HTML, CSS and JS?
- New User Form – Custom Menu Page
- rt media plugin count not working in shortcode [closed]
- Want wp_get_post_terms return in arbitrarily order, how to do?
- How to resize images due to container width automatically server side/without CSS
- How to redirect a URL with parameters?
- How to create a managed image repository in wordpress
- Anonymous Postings
- how to add a button next to the wordpress view button?
- How can I prevent my plugin go development trunk [closed]
- `plugins_api()`: why does a commercial plugin changelog link result in a tailing plugins repo check and 500 error? [closed]
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- how to do login using woocommerce rest api From android
- How to create a code editor for my plugin .?
- Manually set a custom admin sub-menu selected?
- How to call plugin functions in a custom template
- Plugin usage wordpress
- How do I pass custom shortcode-extracted variables (taxonomy) into a query function for WordPress RoyalSlider?
- WordPress 4.3 broke meta redirect (with url params plugin)
- How to prevent PHP fatal error if plugin hasn’t been enabled and a method is called in theme file?
- Optimizing site
- Integrate Algolia to WordPress site
- Is there any pre-existing plugin to track and block IPs with suspicious activity on my site?
- WooCommerce – set session with new cart item meta when updating cart item quantity [closed]
- Woocommerce singe product custom gallery output works just on the first slide
- All custom widgets are not showing in widget area at the same time
- Search by Attachment ID
- Apparent errer when installing plugin
- Issue removing Media Editor Tabs — Duplicate Items
- display link to a custom plugin in admin menu bar
- A plugin popularity data inside “install new plugin” [closed]
- Error jQuery(domChunk).live is not a function
- I cannot include a file in my plugin settings page
- How to change my 3000 Published post status to Draft using PHPMyAdmin
- Show popup on click
- Adding an item to an anonymous array inside a filter?
- add menu page not showing Icon
- One quantity for group of variations
- Plugin for showing single product on a page
- Is admin section completely customizable in terms of styling?
- Taxonomy question
- What’s a good way to default behavior if a plugin is inactive?
- How do I add languages?
- Render Shortcode in Lightbox Gallery
- Which Membership Plugin? [closed]
- Replace code in plugin template
- Moving sidebar links to below the header menu
- ACF: Hide a div or template section when a custom field (in a field group) is empty
- How to delete remain data in WP database after deleting custom post via admin interface
- Adding a variable to a meta field in the backend?
- Free multi dealer rental cars (sign up) [closed]
- is_user_logged_in() undefined at shutdown in plugin context