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
- Why use if function_exists?
- get php variable from functions php and echo it in theme template files [closed]
- Use AJAX in shortcode
- Include files in child theme functions file
- WordPress Theme Update Action?
- How to get woocommerce inventory status [closed]
- Does WordPress Development Mode Exist (with not minified JS)?
- WP_Query in functions.php
- Implementing DNS Prefetching with WordPress
- wp_delete_user with username
- what is the meaning of settings_fields()
- Organize functions.php
- How to correct schedule my event weekly with wp_schedule_event()
- Why do I get Fatal error: Call to undefined function get_most_recent_post_of_user()?
- Change labels on ‘Nickname’ and ‘Biographical Info’ in user-edit.php
- Edit the_content function
- write in functions.php
- how to get and display logged in user’s recently read posts
- Cleaner way to access custom fields in code?
- Add a new subscriber role using a function
- Why functions.php file is called 8 time for just one page load?
- How to store / access files in child theme folder
- How to set the jpg image compression for specific thumbnail sizes?
- Function to auto-set a featured image that is already in use
- Delete pages and Create default pages for all new network sites
- Post thumbnail relative link and HTML modify
- Find first image on paginated post for Pinterest
- How would go about if I just want a temporary function?
- How do I edit wp_head and/or functions.php to remove rss-feed which isnt used and dont validate?
- Generating rel=prev and rel=next only on wordpress categories
- example of build_query function?
- Custom HTML in specific category single page and its descendant categories
- Avoid loading css from parent theme
- Modify a function without editing template
- How to hide unused profile fields?
- Override widget in function WordPress
- WooCommerce – Want to show multiple currency for a single product [closed]
- How to change or add user role after getting post request data about pay? [closed]
- How add various functions within 1 conditional?
- Disable auto-resizing of uploaded images, but only for certain filename
- Add to cart php not working [closed]
- Login Redirect if Logged in from Specific Page
- Automatically include all php files in a child theme directory
- Override the function twentytwelve_scripts_styles in a child theme
- Custom taxonomy widget in admin area
- Add a unique class to HTML tag/element
- Removing specific menu items?
- AJAX error handling for submit function in functions file
- Do I need to use wp_reset_postdata for my function?
- get_pages() Returns Only One Item
- Use a shortcode to display custom meta box contents
- how to make has_block() see inside blocks too
- add_theme_support( ‘title_tag’ ) is not showing title on index.php
- Tracking the number of shortcodes for a list?
- Solution dealing with Child Theme / Parent theme functions
- Function to pull data from user meta not working
- remove edit link only for published post and pending post
- When are the user meta fields created in the database? Admin vs Woo API REST
- is_product_category(‘Services’) not working
- How to automatically add counted number to navigation menu items?
- Replace theme function
- How to access custom class methods from any include without using global
- Insert Modal on user first login
- How do i create a search option for pdf’s only
- What is best practices to move the following code into a function?
- Correct way of Enqueue self hosted fonts in sass project
- function syntax is off,
- Return ACF Field value function
- Best way to add image to recent posts widget?
- 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]
- Get Value of Custom Field
- Break a WordPress function to run in patches and re-continue
- How does child theme functions.php work with parent theme functions.php? Is it like CSS? [duplicate]
- restrict access to specific urls on a specific period of time
- Undefined offset: 2
- Need a functions that adds (adm)/(mod) if current user is admin/moderator right after their username
- Add title & subtitle to shortcodes
- How to Delete Posts by title?
- clickable title of 2 post on mainpage USING functions.php
- Display function from functions.php in tag.php
- AJAX values converted to PHP Variables?
- Custom Post Type Search
- How to overwrite image if it already exists – WordPress, Gravity form