Yes, that’s what the WP Cron system does. It will fire an action/hook as close to a requested time as it can, and can do it once or multiple times.
You would still have a hook that runs on profile_update
but it wouldn’t send data to google spreadsheets, rather it would schedule a cron job that executes an action, and you would send that data on that action.
Note though that you will need to check if the cron job has been scheduled already or not to avoid duplication, and you will need to give it everything it needs to do its job as it will not be the same request ( any variables/GET/POST/FILES/etc will not be accessible, new request, blanks slate ).
Related Posts:
- Is there a hook that runs after a user logs in?
- WP Cron Doesn’t Execute When Time Elapses
- Why do some hooks not work inside class context?
- Action hook for custom tax edit
- Is there a limit to hook priority?
- Is there a hook before the user is authenticated?
- Auto-retrieve YouTube Image for Thumbnail?
- Do WordPress Core Filenames Work as Hooks?
- How to check if which hook triggered the call to a function?
- How do I flush the rules after saving settings using the Settings API?
- Run javascript code after wp_login hook?
- Is it possible to save/modify a post without calling the “save_post” action hook?
- Redirect logged in users if they are on a specific page
- Generating robots.txt dynamically
- Hooks are not executing
- Rest API Hook When Post Is Requested
- Best possible way to get all options
- Access post meta just after publishing
- wordpress custom modules/widget areas on the page? can i make my own?
- How to add hook to the_title() and get_the_title()
- Add custom URLs to WordPress’s XML sitemap
- How to override languages files in wp-content/languages/themes with child theme
- Hooking after get_header()
- How to get post ID in post_updated action hook?
- How can I set status=’publish’ for all featured images?
- How to send data from a form created by a plugin to an external API?
- How to get all functions with priority ‘1’ attached to hook ‘wp_head’
- How to change the location of admin notice in html without using Javascript?
- Why doesn’t wp_enqueue_script() work when including a JavaScript file with TEMPLATEPATH?
- What are the differences between comment_form_logged_in_after and comment_form_after_fields?
- Detect change to user_meta and retrieve old and new values
- WordPress action and filter hooks runs asynchronously?
- Featured Image Action Hook
- How to find a callback attached to a bbpress hook?
- Event Calendar using insert_post_data after save_post and insert_post after post_transition draft_to_schedule
- How to extend custom (non-core) blocks?
- Hooking into the init action will fire it too frequently?
- Implement Hooks Using Array
- What hook is used to display the admin_bar on the front end?
- Is there a JavaScript equivalent of get_post_field?
- Adding a hook to the default (page.php) template
- Add action hook into wp_localize_script
- Conditional for autosave or auto draft?
- Using delete_attachment to prevent an attachment not working
- How does do_action( ) works actually?
- Giving the_excerpt in the place of the_content?
- Hook to init or call explicitly within functions.php
- How to add content to the end of a page with a hook?
- WordPress’s “Text” Format
- run script on publish
- Calling add_action on a filter hook?
- Remove Header and Footer if user is not logged on
- How to use embed_content hook?
- What is deprecated_argument_run meant to do exactly?
- How do I run an action after a featured image has been selected in the Gutenberg editor?
- How to run a function after wp() in the wp-blog-header.php file?
- Notify admin when Custom post meta data gets updated or deletet
- WP Cron not executing after timespan
- Action hook with wrapper html
- call php file from form and use wp functions
- Thickbox ‘tb_unload’ function being called twice
- wp_insert_post hook for a wordpress plugin
- WordPress add_action the_post hook
- Post via wp-admin and via iOS app, same hooks and triggers involved?
- add_action hook for links.php page
- Hooking save_post breaks check for term in added_term_relationship hook?
- Hooking after blog info update
- Hook to add_action(‘updated_option_my_option’, [$this, ‘save_data’], 10, 3]);
- Session management issues with WordPRess 404 Error page
- Template_redirect works, but headers aren’t sent when checking via cURL
- template_redirect hooks redirect wrong URL
- Registered custom dynamic tag not appearing
- Add a Call to Action Button to WordPress Post Thumbnail
- How to hook add_action() into after category description with id?
- What hook can you use to get the full response?
- Easy Digital Downloads – How to use hooks correctly?
- Updating a related post’s “post_modified” value
- add_action doesn’t work for my function
- adding wordpress yoast SEO canonical url from “transition_post_status” hook
- Cookie cant be read even cookie is present
- How to create callback function which returns all posts with specific data?
- How to trigger click events using hooks
- remove_action() hook not working
- Can add_image_size be added earlier
- Hook to change Author Info
- Why the post ID is 0 in a hook within wp_insert_post_data?
- Function Hooked on Init Running Multiple Times
- How to work with hooks and Posts to posts plugin?
- template_redirect and title
- When is get_currentuserinfo() needed?
- disable publish button until condition is not met
- How do I remove an action hook by s2member
- How do I change TinyMCE button “i” to create a i tag rather than em? [duplicate]
- How can I modify the code generated for a PDF by the Add Media button in Classic Editor?
- Do New_to_publish hooks work for custom post types
- What is the equivalent hook for both admin_head() and wp_head() combined, if any?
- Creating my own “recent blog posts” static Gutenberg block, can’t use react hooks in the frontend
- How do I set a custom post type Category after import using wp_set_post_terms
- Hooks to trigger a callback when adding, removing, rearranging or updating a widget in the widget area
- Why does before_delete_post run when opening a post in the backend?