You have the wrong period alias in your code
You added your personal period in my_cron_schedules()
as 61sec
:
$schedules["61sec"] = array(
but use it in setup_schedule()
as 61sek
:
wp_schedule_event( current_time('timestamp'), '61sek' , 'expire_ogl');
The other parts of the code look right.
Related Posts:
- Do WordPress cron jobs slow down page loading?
- WordPress cron isn’t scheduled on amazon web services
- Get frequency of scheduled event
- crontab wp-cron.php on multisite path-based network: one for each path? Or just one for the root?
- Running wp-cron from CLI
- Why?: hundreds of empty files named wp-cron.php?doing_wp_cron.
- Can’t access wp_filesystem in cron function
- WP CRON runs only the first time
- Check if event was scheduled – schedule event only once
- Create function in functions.php with hook name to execute URL
- cron.php being constantly deleted [closed]
- Scheduling posts on wordpress adds wrong seconds as post_date
- wp_schedule_event run in background or not?
- Detect if Cron is Running
- Run function with linux cron job in WordPress
- Schedule cron don’t work
- Cron schedule not updating after run
- Can you register two cron events in a single function?
- When to use wp_schedule_single_event for async / non-blocking processes?
- Issues When Recursively Calling wp_schedule_single_event()
- wp-cron behaviour when there are multiple queued tasks
- System Cron job not firing
- WordPress Cron Job Not working
- WordPress automatic publish: is there a timeout when WordPress won’t publish anymore?
- Cron job not working – Can’t see in the queue attached
- “Missed schedule” posting bug
- Cancel/Stop a currently ongoing scheduled cron event?
- Code does not work in class implementation but works fine in functions.php file
- Use cron to create a non blocking task
- How to create and run cronjob in WP without using the plugin?
- Cron job to run just once per day using external cron service
- Manually running cron from the server
- Cron jobs when running multiple instances on the same DB
- Scheduling WP cron jobs
- WordPress Cron job, 302 response
- How can I prove if wp cron is running my task if I have DISABLE_WP_CRON set to true
- Time limit on long cron job?
- Strange cron job behavior and how to solve it?
- WordPress cron not getting executed when called by external service (but ok from browser)
- Cron and request with wp_remote_post
- How to Set a Condition via Page Template Name in WP Cron Job?
- Real cron killed my cron system. Only define( ‘ALTERNATE_WP_CRON’, true ); works
- Server cron job not working
- Most efficient way to trigger wp-cron through system cron.
- How to make sure WP-CRON job loops through all posts?
- Run external file cron using WordPress Scheduler
- Huge cron option_value into wp_options table
- setting up a wp cron job
- Pages for Cron use Only?
- Cron jobs repeating themselves
- Does DISABLE_WP_CRON prevent plugins from registering new cron tasks?
- Cron event running more than once if triggered from WP Crontrol
- How to know if WP cron is currently running my hook?
- Cronjob function not executed – negative seconds
- WP CRON Fails At 13:00 Every Day
- Update last created post in custom post types with wp_cron()?
- Custom cronjob not executing at all, but manually
- ‘wp_site_health_scheduled_check’ Causes Failure Of Other Scripts
- WP Cron Doesn’t Execute When Time Elapses
- Is there a known vulnerability for wp-cron.php?
- Better handling of WP-CRON server load abuse
- wp_next_scheduled returning a past timestamp
- run a cron task without obstructing page load?
- Do wp-cron scheduled tasks run asynchronously?
- Hourly WP schedule, do I need at least 1 visitor hourly?
- Multiple wp_schedule_event cron jobs in plugin cause multi-execution
- Run a cron job (or similar) in the background of WP after post update/create
- Schedule event every second thursday of the month
- How to set up WP Cron in this scenario
- Auto Delete Users (auto_delete_users)
- wp_schedule_single_event function not working
- WordPress Cron is scheduled but not running
- How to make WordPress emails async
- How to execute existing WP Cron programmatically
- Will cron job run if page loaded is being served from cache?
- debugging wp_cron jobs with XDebug in Eclipse
- How to schedule a cron job in plugin without waiting for page load request?
- wp-cron.php – timeout
- Failed to open stream: HTTP request failed! in \wamp\www\wordpress\wp-includes\class-http.php on line 929
- export a csv file from the database with a cronjob
- wp_schedule_single_event not working: cron job is triggered but nothing gets executed
- WordPress action hooks related to scheduled posts not Fired
- WordPress, how to run a function every 12 december?
- How to use wp cron job to run a function
- wp_schedule_event – function won’t execute
- A unique wp_schedule_single_event() for each post?
- How to Schedule Cronjobs for start of every month and year
- Cron: Update four post at Hour
- Flush rewrite rules with scheduled event (cron)
- What am I doing wrong creating post draft via wp-cron? (wp_schedule_event & wp_insert_post)
- WP cron and update post meta
- Cron Job Scheduling in wordpress
- Schedule Removal of Menu Page and Shortcode
- WP Cron as Fast as WordPress AJAX?
- Sending emails to separate accounts using a for loop
- Cron Lock Timeout, when to use?
- WP cron Executes once and doesnt repeat
- wp_privacy_delete_old_export_files, failed to run
- How to Auto Update WordPress Post after specific time?
- Protect wp-cron from hackers