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:
- Cron: Update four post at Hour
- Activate Plugin Automatically After Set Time
- New posts are not showing up on my front page
- WordPress is redirecting me to homepage
- Is there a hook similar to “save_post” which only fires AFTER the post is completely published?
- Adding custom post category to categories widget
- reminder wp_schedule_event
- How to display the custom post related blog by category?
- WP Forms not displaying,becomming an fatal error
- Randomize post (and page) IDs on generation
- Moving all wordpress posts from 50 websites to another website
- WordPress hide post from custom post-type on a single page
- How can I see $post object in frontend from functions.php?
- Show post object of any page in frontend
- .com creates automated link in post
- Allow members to create groups on my site
- Trying to add a new feature in my wordpress website
- Powerpress upload a podcast without creating a post for it
- automatically set random featured image by category in wordpress on post
- add tags to wordpress post using REST API
- get_posts query results out of order but shows correct in php snippets plugin
- Is it possible to customize a wordpress post from outside dashboard(Something like site.com/post-type/post/?e=post_id)?
- Prefix WordPress Taxonomy Tags With Hashtag Symbol Like Twitter
- Pagination (including title of each page) in a post for a long posts
- How to make a page both “private” and “password protected”
- Failed to load resource: the server responded with a status of 500 () post.php
- Scheduled cron event removed from list automatically after sometime
- How to echo a PHP Code After the Content
- All Post WordPress Page Error
- WordPress Product Detail and catalog
- WP_CRON issue with UTC and local time
- How to upload PDF from Front-End and post automatically?
- Is it possible to create duplicate post on other site (either push, on publish, or pull, periodically)?
- How to wrap image tag into div for post only?
- Better way to run heavy scripts using WordPress database
- How can I get the Post ID and Post Type within a Must Use Plugin?
- WordPress CPT Url metabox collection
- Get value from an input field and pass into update_meta_data as $meta_value
- Identify if the_post hook is being called from the admin post list
- wp_schedule_event function reference
- My own metabox checkbox plugin only saves the last value I’ve checked
- Get content and send to 3rd party
- WordPress Cron function is not working
- How to prevent authors from editing their post count?
- WordPress crob job performance
- Add dynamic color to each category item
- Include post_date in search
- Add Filter to get_next_posts_link
- Is there any hook to change media html in post? [duplicate]
- Is it possible to get a shortcode generated by a plugin, then, using a function, create a new post using that shortcode?
- How to Save settings of custom tab product page in admin side in a database?
- How to force regenerate thumbnails in WordPress posts?
- Displaying friend’s posts only
- WordPress Dashboard organize posts based on categories
- Add new post using a page inside the website
- How to customize ‘recurrance’ of’ wp_schedule_event’?
- Trending Tags based on post views
- Publish Post but don’t call publish hook in foreground post creation
- Hidden Some Setting on Post or Page [duplicate]
- Different email notifications (about pending posts) to different users
- How to display single arbitrary facebook post with a shortcode?
- Better code/text editing for posts and pages?
- Custom post type request switches to media request
- Serialize $_POST global in wordpress
- WordPress list child pages of custom post type
- Style WordPress Custom Post Type Single Page
- SWF in wordpress post
- 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
- get post excerpt by query
- Ger posts from similar tags and categories
- My Blog page ( posts page ) theme isn’t changing with the new theme [closed]
- Can i have limit posts on a specific category and automatically remove older ones?
- Is there a plugin or another way that can help me find out the underlying files of a page/post? [closed]
- How to customized post slider layout in elementor wordpress [closed]
- Redirect a specific User role not admins automatically to view the post that they just updated
- How to export post tags from wordpress
- Running a function using Crown WordPress on one day a week, for example, Mondays of every week
- Show WooCommerce products based on query parameters on redirect
- warning wp session
- How to add portfolio category post count in main navigation menu?
- How to update a lot of posts on my WP site with additional content?
- Getting 400 Error in wordpress website
- is_singular() in mu-plugins not working
- What is the easiest way to create a custom field archive?
- WP galleries in posts after import. How do I do it?
- Show the author only own types of publications. (JetEngine, Elementor)
- Difficult case to solve – Select + select = result(related data)
- WordPress “wp cron event run” as Siteground cron job
- CPU Overloading due to some hooks
- Disable All In One SEO plugin for custom post type
- Import posts from a different database with the same old id
- Randomly display activity posts on home page with buddypress
- Updating post_parent caused the website to become unresponsive for 40 seconds or more
- This is a plugin code that supposed to add badge/label Infront of post title but i don’t understand why it is showing the code tags in frontend
- How to check if the post exists in any of the categories?
- Cron Job not working
- What is this async request in wordpress
- Search result page admin panel – display values from the result’s metaboxes
- How to show custom post type in all post section?