Network requests during page load are very heavy action and should be avoided at all cost.
WordPress has wp cron
functionality to work with scheduled events and depending on your data requirements you might map data to Custom Post Type
, store it in custom table or maybe more simply use caching API such as Transients API
Related Posts:
- Alter how often WordPress Auto-Updates Plugins
- How do I exclude plugins from getting automatically updated?
- How to implement WordPress plugin update that modifies the database?
- How to disable core and plugin updates
- How to safely sanitize a textarea which takes full HTML input
- Update plugin from personal API
- Schedule WordPress Auto-Updates to only run during business hours
- Plugin update error message
- How to allow HTML tags into WP Bakery (formerly Visual Composer) `textfield` parameter
- How wordpress detects a plugin update
- Avoiding plugin name collisions with WP updater
- Making plugin unique to not conflict with plugins with the same name
- How do I sanitize a javascript text?
- Plugins won’t auto-update on IIS
- Sanitizing, Validating and Escaping in WordPress (Plugin)
- Can a manually uploaded plugin be made to track updates from the WordPress.org plugin directory?
- Do We Need to Validate, Sanitize, or Filter Simple Numerical Superglobals (Cookies and Post)?
- How to make my plugin able to be updated from admin panel?
- Restored WordPress on new Server – Can’t auto-update plugins
- MITM risk of not sanitizing?
- Which escape function to use when escaping an email or plain text?
- What is the correct way to update both WP/plugins/themes without breaking the site?
- Can’t update/install plugins or WordPress
- Private Plugin Updates – Localhost
- CSS from textarea in options page to frontend what to do
- How to sanitize uploaded file filename from a plugin?
- I should enable automatic updates?
- Check filter defined or not?
- How to execute plugin and theme updates from a web hook / endpoint?
- Sanitize $_GET variable when comparing
- How (or where) do I get wordpress plugin update download link?
- What is the best way to hook a rewrite function for certain php code when plugins are updated?
- Determining Whether Automatic Upgrade will Fail?
- How to set plugin auto-update Enabled by default?
- How to create a plugin with automatic update?
- How do I stop plugins and themes from getting updated in a new plugin?
- Update a previous version of plugin when the new plugin is built from the scratch
- Possible to automatically update plugin without user interaction
- Update (a function) post’s featured image as soon as $image_url changes
- Can we validate data from jquery
- Escaping and sanitization
- WordPress core update fails – no issues with plugin updates
- error_log() not working in add_filter auto update callback
- Save selectlist value (taxonomy) in wp:wp_set_object_terms
- Update a WordPress website FROM Twitter or Facebook
- Hook automatic_updates_complete to autoupdate plugin
- How can I properly sanitize the update_option in WordPress?
- How to update changes to multiple sites at the same time
- How to Enfroce Domain Licensing Limits? [closed]
- How to Replicate Elementor Licensing Model
- Plugin download link
- Plugin_Upgrader not working if function is called from remote server
- How to avoid plugin name conflicts from the upgrade notifier?
- Remove WordPress Toolbar buttons
- Can a plugin cause permanent damage?
- Adding an admin page – OOP approach not working
- How can I pass a variable to wp_ajax action?
- How do I make images clickable so as to enlarge them using lightbox?
- FacetWP group listings by custom field [closed]
- Plugin Paths Issue
- UnInstallation of a Plugin from a developers perspective – The correct and clean method
- Change wordpress current_time function to different timezone
- Restrict media upload size by format
- Creating custom HTML pages
- How to display the “ratingValue” and “ratingCount” values generated by the KK Star Ratings plugin into my page’s recipe ld+json schema
- Two problems on my WordPress installation [closed]
- Frontent user submit and view content [closed]
- Center and hide overflow of WP toolbar custom links
- Users are being redirected to main site when trying to register on subsite of my Multisite network
- eLearning Module
- Are there action hooks for comments?
- Customizing a blog page layout
- Sub Plugin deactivation when Parent Plugin deactivate
- what is the point of telling add_filter how many parameters you want passed to the function?
- Developing a WordPress plugin like a component in Joomla
- Woocommerce checkout page broken when set as a checkout in woocommerce settings [closed]
- Ayuda con este error: Failed to load plugin url: https://degranero.es/wp-content/plugins/easy-columns/tinymce/langs/es.js
- How to remove WordPress Default Comment? not Facebook
- Try to debug a plug-in written by someone else
- plugin operation launch every time i click on page
- Can I retain custom taxonomy data when uninstalling a third-party plugin that created it?
- Plug-In’s Selection Not Accessible
- After WP installation no GD lib recognition despite module is installed
- Category Arabic Slug shows as symbols in plugin lists
- Create password protected page, no registration
- Facebook Quote Plugin for Blockquote?
- Coming soon pages with rest of site in maintenance mode
- insert multiple entries in database using a loop issue
- WordPress, modular content, and syndication
- Execute certain function on GET request
- White screen and can’t activate themes and plugins
- date function not correctly returning date
- How can I Customize My WordPress Admin Dashboard into Dark Mode?
- Add custom fields in the new and edit the site forms without touching the WP core
- Plugin use of ajax/jquery depending dropdown
- Extend WordPress REST API with Scheme Pro Plugin
- Create Landing Page With Login or Subscribe Form [duplicate]
- Sorting/Ordering Poll Plugin?
- Get URL for featured image for posts? [closed]
- Text Wrapping in WPDataTables