It seems you are using your regular cron for that and it seems you are using the WP cron incorrectly in your example above. If you want to use wp cron in anything, this is the basic usage:
if ( ! wp_next_scheduled( 'wpcron_hook' ) ) {
wp_schedule_event( time(), 'hourly', 'wpcron_hook' );
}
add_action( 'wpcron_hook', 'delay_myposts' );
function delay_myposts() {
// put your delay post codes in here
}
Reference: https://codex.wordpress.org/Function_Reference/wp_cron
If in any way that your WP cron is still not firing, this might be in your wp-config.php file
define('DISABLE_WP_CRON', false);
Related Posts:
- Schedule WordPress Auto-Updates to only run during business hours
- How do I email a new page password to somebody every month?
- Can we completely remove the WordPress Sitemaps (WordPress 5.5)?
- Disallow a user to post in certain categories
- Article source link for posts
- Get the last post ID
- Enable comments for post with comments meta box removed
- How ( and mostly at what time ) can i prevent the alternate cron from running?
- Custom Post Type causes Page Not Found
- Unique post-id for WordPress Multisite Network
- CKEditor: Uncaught TypeError: switchEditors.switchto is not a functiononclick
- Why is wp-cron only executing on page visit?
- Output HTML only on individual post view
- Execute a plugin only on post pages
- Portfolio + Blog: multisite or plugin?
- How do I “get the next 10 posts after post_id == x”?
- Calendar Solution: Handling upcoming Dates with Posts?
- get_post_type on post.php
- Does using WP-cron make the site slower for the user?
- Can’t delete Draft Post [closed]
- Outbound link autometic converted into linkdirect , and not opening
- Display by Category in Admin
- Contributive page where people logged in can write
- How to make a implement queue for scheduling tasks in WordPress?
- Unable to add TAB character to post?
- Cron Job not working in plugin
- Redirect to another page using contact form 7? [closed]
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- Is it possible to send blog posts via email to subscribers?
- Is there any plugin which can paste a common content to my every post?
- Recent posts per category loop?
- How to set intervals in cron jobs?
- Problem of encoding characters (apostrophes) in my posts publications
- How to backup single post in wordpress [closed]
- How to change the post form from plugin?
- Allowing users to Sign-up > Login > Post articles that need approval
- posts from multiple post types in one slider
- get_edit_post_link() not working on wp-cron
- Set Multiple Meta Values as an Array Using dispatch( ‘core/editor’ ).editPost() Call in Gutenberg/JS
- Is there a plugin or a way in the wordpress that would let us have different versions of a post or page accessibe to users?
- download button for audio file in post [closed]
- check uncategorized category by default
- Print posts category or tag as a formatted journal
- Post deleted in trash [closed]
- How to relate 3 wordpress components with each other (Create database relationships)
- What hook can I use to modify custom post data before it is displayed on the page?
- get current page number with wp_link_pages()
- problem with register_activation_hook in plugin
- Delete data from custom table when deleting a post
- Plugin is creating posts twice
- How to write a new file when new post has been published in WordPress
- How to Get Recent 5 post in My Title bar?
- Plugin for visitors to edit content without logging in? [closed]
- What causes wp_schedule_single_event to fire off?
- WP Insert Post If user refreshes override new post
- Summary and Comments on Main landing Page
- Method/Plugin/Hack to Start a Post with an Writing Outline?
- What snippet do I need to type to show my ACF field show up on my theme?
- WordPress cron job running more than once
- Is there a way to make [Table Of Content] plugin while not using revision data?
- Is it possible to pin a post in second position from top
- Oops! That page can’t be found
- Save log for imports in WordPress database – options-table, custom post type or other place?
- page duplication on wordpress that wont stop
- Activate Plugin Automatically After Set Time
- WordPress is redirecting me to homepage
- Adding custom post category to categories widget
- How can I see $post object in frontend from functions.php?
- Allow members to create groups on my site
- WP_CRON issue with UTC and local time
- How to wrap image tag into div for post only?
- wp_schedule_event function reference
- My own metabox checkbox plugin only saves the last value I’ve checked
- How to prevent authors from editing their post count?
- WordPress crob job performance
- How to force regenerate thumbnails in WordPress posts?
- How to customize ‘recurrance’ of’ wp_schedule_event’?
- Serialize $_POST global in wordpress
- How to use shortcode of any plugin to show it visually where i want?
- WordPress not updating post or disable plugin instead a white page appear
- Ger posts from similar tags and categories
- Using a Cron Job to dynamically populate a field ONCE, and then making the field blank the next time someone visits page
- Internationalization of Blog Posts
- Issues with Post 2 Post Plugin
- How to add character to content of post?
- single.php fires more than once after clicking on any post to view with different post id each time
- Twitter List Tweets and Delicious Links as Posts
- Custom feed parameters / Template overriding
- How to make only selected posts appear on a selected wordpress page
- How to block external download link access if visitor not referred from WP?
- Plugin to display text before a post
- Notifications Bar on home page only
- Distribute post content through several divs [closed]
- Does anyone have the Custom Post Permalinks plugin from John P. Bloch? [closed]
- Shortcode returning specific content of a post
- How to get an error message if a form is empty (plugin: Post for site) [closed]
- How to customized post slider layout in elementor wordpress [closed]
- How to export post tags from wordpress
- Show WooCommerce products based on query parameters on redirect
- Getting 400 Error in wordpress website