It is set_site_transient
, not set_site_site_transient
.
You should be aware that a single user will still wait that half a minute for this to complete. wp_cron
does not run on clock time. It runs when a user visits the site.
If you have the ability to create a system cron
job then hook your callback to an AJAX API action, and use the system cron
to trigger it. That should give you a true clock-time activation and avoid having to force some unlucky user to wait.
Related:
WordPress Cron Schedule the if and else statement
Should I use set_transient or update_option?
Related Posts:
- Do WordPress’ cron’s clean up expired transients?
- How to run a function every 5 minutes?
- Automated mark posts as featured every day
- Create cron job for update translations automatically
- WordPress function, Run using Crontab
- Display a random tag but using cron to control frequency of change
- Bulk updating a group of WordPress Pages every 10 minutes
- Writing a function for WP Cron to run a SQL command daily
- Deleting guests profile users after 1.5 hours
- Scheduled post delete – can’t pass the cron arguments
- Automatically add custom fields (post_meta) to all published posts, hourly, via wp_cron?
- Show the online status of the current post’s author
- Working function() doesn’t execute when triggered by WP CRON
- Update post meta with wp cron
- HELP: Code To Check Status And Write Debug Entry
- Function attached to cron job not running but will run if called manually
- Submit CF7 form programmatically with WP-Cron?
- Cron Register everytime if i reload admin if i pass some extra argument in wp_schedule_event function
- Home/Static Page View for Visitors pages after that should be restricted
- functions.php filters not applied in AJAX call
- wordpress not calling peliegro functions.php?
- Dynamically generated Navigation Diagram using Custom Fields
- Child Theme functions.php has no effect
- Setting a cookie in functions.php and it gets deleted when working on an other function
- Hide certain post types from editors
- Problem with add_rewrite_tag
- Add functionality to post editor
- Update add_image_size
- Language switcher for subdomains
- custom post with loading script per single post
- getExcerpt: Make ellipsis appear only if character limit is reached
- Define an extra field for all pages (with no plugin?)
- Function to draw random image from specified category destroys site logic – why?
- Issues with add_query_arg() not passing a variable
- update_post_meta not working in function
- WordPress permanently logging users out
- What add_action reference should I be using or should I use do_action?
- What is wrong with functions.php? Fills error log with same error
- Function returning queried meta value based on current post ID
- List all post title in category using functions.php
- wp_enqueue_script only works outside of action
- How can I include user meta information in the resulting array of a WP_User_Query?
- How to add next height number in Order Attributes inside the Add new page. [duplicate]
- Adding custom field in menu options [duplicate]
- Quicktags external functions file
- Pagination in Search result
- Custom field not updating via functions upon publishing
- Pass max posts to Javascript
- Integrate WP Tiles into existing loop (index.php) and theme
- Updating site content after an AJAX call without a page reload
- disable WP_error: authentication_failed
- Function the_content
- Problem in outputting shortcode
- Edit TinyMCE Button Functionality
- need help with ‘… read more’ excerpt in functions.php
- Problem in shortcode outputting content
- Load a Child Theme’s style.css just before the closing tag
- Load CSS conditional on custom field is present
- Can’t wrap my head around this function – any help would be appreciated
- Modify sub_menu function to show pages below a specifically set page
- Figure inlined width trigger distorted layout
- Changing the color of post title [closed]
- Add custom class to all URLs on entire site
- wp_nav_walker that interacts with widgets to setup mega menu
- How To Get WordPress Categories Last Update Date?
- save_post hook – headers already sent?
- Expanding a function to call a plugin or show a link
- How to programmatically GET (to know) which Sidebar (or) which Menu is being used on Different Pages?
- How to add a meta information to the URL?
- Is it possible to change parameters of Parent theme function in the Child theme?
- Why are some custom javascript files working but some are not
- Getting error while trying to use custom comment function
- Error function main() is a non-object to construct my Ajax.php
- Load WP Admin scripts in a child theme functions file
- List Most Read Posts from last 7 days (with custom post type and other meta queries)
- Adding stick post button to edit post page
- add_role menu pages are not visible
- Preventing PHP Execution in Parent Theme
- Excerpt length: get 2 paragraphs
- Sanitize html, where to sanitize
- Settings in functions.php used by a plugin
- Remove heading tags on line break
- WordPress Javascript Widget jQuery Dependency Issue
- wp_upload_bits – define (sub)folder / (sub)directory before filename?
- Apply height and width for the_content() inside youtube video tag
- How to mirror exactly the left admin menu on front end?
- Adding a filter with custom function to the menu / navigation
- Check if excerpt is empty at loop-portfolio
- Mail function not working with user accounts
- Open image size links in a page instead of direct image link
- Function to get the name in database table from the comma separated string
- Function not recognizing page id?
- Add Function For Instances of Custom Text in Multiple Category IDs to display in post content
- Move captions under gallery images in twenty fourteen theme
- Increase Comment Author Gravatar Size On WordPress Default Comment Function
- Random text changing to weird icons in both admin & front end
- Register a widget area when a theme option has been saved?
- Blank child theme – functions.php problem
- Force changing the Site Title and add link
- Allow the access over wp-login.php