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
- Adding “Changelog” as a second tab to the auto updater custom plugin
- View Version Details” on Plugin update shows “Plugin not found
- Fatal error..can’t sign into my WP site to try and deactivate naughty plugins. Help!
- How to get specific string/value from an array? php [closed]
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- How do i show different group of images below a button when the button is clicked on the same page in wordpress? [closed]
- plugin wraps the entire content
- React error #231with Custom Blocks after upgrade to WP 5.5
- Add User Role: Pre-saved in User-Meta [SOLVED]
- There has been a critical error on your website – won’t fix no matter what
- Adding custom meta boxes to specified custom post type
- WordPress Console Application (ability to excecute a custom function via crontab only)
- Get orders of a specific customer woocommerce
- What am is missing? (API CORS)
- How to do database for download stats?
- Shortcode Attributes to Return different $_POST
- How to find out which plugin create captcha after login?
- Comment IP Plugin – Fixing onfocus=’this.select()’
- How do I make reusable content blocks for header and footer when using WordPress headless with another front-end?
- WordPress 5.4 – How to prevent to enter only certain values in custom field
- What form should the $query media query array have for an Elementor page builder function? [closed]
- Private Page View Counter
- WooCommerce: Force coupon for existing/registered customers [closed]
- Plugin Activation Error – The plugin generated 22 characters of unexpected output during activation
- Plugin Admin Menu Boiler Plate
- How can I add IP address to my post?
- REST API can’t get the response manually
- Super slow plugin page (lots of error 500)
- How to make a dynamic css class whose name changes every visit to confuse scraper
- serverSideRender does not render “preview” html inside Gutenberg block
- How use wp media upload liberary in react components?
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- How to notify wordpress instalation about my plugin update?
- Is it possible not to load theme on a specific page in wordpress?
- How to change shortcode’s default theme?
- Integer in Array returns null
- Plugin onclick button activate other plugin
- composer not working on my plugin when i upload it to my website
- wc_get_template new template does not showing up
- How to select a paragraph other than the 1st to be the post’s excerpt?
- Moving Jetpack buttons to appear below the first H2 title on all project/post pages [closed]
- Send email to multiple addresses on Contact Form 7, but exclude personal details on all but one
- How can I support plugins in a custom theme?
- Display site language setting in source code
- Show icons or badges under title on product archives/category pages
- How to get theme’s info from wordpress.org/themes using api.wordpress.org?
- Override/ignore CSS from active theme as not to interfere with my custom CSS
- WordPress Custom Pages that work with Plugins?