You need to use WP Background Processing which fire off non-blocking asynchronous requests.
WooCommerce also use this for background processing. Check the file /includes/libraries/wp-background-process.php
Related Posts:
- What are the differences between WPINC and ABSPATH?
- Using require_once in a Plugin?
- Making plugin unique to not conflict with plugins with the same name
- How to find out if option exists but is empty?
- Errors while using ajax from external wordpress page
- shortcode doesn’t work
- Deleting images through upload folder, but not deleting from media library
- WordPress plugin installation
- Create or Update thousands of woocommerce products via PHP
- send_headers don’t work on wordpress multisite
- Scope for PHP Variables Assigned in functions.php or a plugin
- Update Option Error: Notice: Undefined index
- How to generate video out of images via WordPress plugin
- Where should I save an API key of my user when installing my plugin?
- Custom form action to handle data inside a plugin
- Self deactivate plugins after an action occurs
- How to periodically scrape and cache strings from remote txt files. – My First Plugin
- WP Post Template – Templates in own folder
- Avoid class name collision when using third party libraries in plugins?
- wordpress plugin is not activating from widget
- Using a custom plugin to capture input data via Ajax and PHP
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- How to fetch products with the price in a page on woocommerce using a form or live search with php
- Image upload and download from front-end
- How to output CMB2 select options from repeated groups select elements?
- Creating a Callback URL for WordPress Woocommerce to update Order Status
- Ajax call returning 0
- How to deal with WordPress and Pocket API to automate content curation on my hosted wordpress blog? [closed]
- WP All Import – Execute Imports
- How to replace WordPress Media Upload Window with user’s device window?
- Conditional attributes and logic per product category
- Create a plugin from within WordPress
- Class variables not correct on page
- Why is one phpunit test throwing an error on one class when all other classes are similar without error?
- Duplicate results are displayed in a custom plugin [closed]
- Why is my custom post type not being activated on plug-in activation?
- How to redirect to same page after form submission
- How do I add $_SESSION[”] to my wordpress page?
- Plugin onclick button activate other plugin
- I receive taxonomy id
- output html on post or page from custom plugin [closed]
- Loop in elementor custom widget not working
- Built a second plugin but it overwrote the first one
- Creating a functionality plugin to edit seriously simple podcasting
- Asynchronous request in wordpress
- Make plugin php file called directly aware of WordPress?
- Way to send multiple values for column to MySQL?
- Using meta_query in a WP_Query not working for numbers properly
- Next Previous Post in wordpress with previous / next link with title?
- Different registration form for different roles
- Apply html elements in php statement
- WordPress Post HTML after Posting
- Settings options not showing up on Sub Menu page in WordPress plugin
- can’t unzip file
- Conditional delete metadata does not works
- Allow a particular user to access a particular plugin?
- Change plugin descriptions
- The Build menu theme is frozen with the wordpress theme
- How can I translate something in my class constructor of my plugin in WordPress?
- Define global variable in theme file and call that variable in plugin file
- Rename a folder via HTML POST request
- How to translate to spanish wordpress hardcoded content/files?
- update_post_meta is not working for me when I use e.preventDefault for update button
- working code, not working – Plugin Dev
- SimpleXML is not working with xml response from external api
- How to use Datatable with Ajax when creating plugin on WordPress?
- WordPress plugin blog creation
- Multiple image selection custom widget
- Prefix WordPress Taxonomy Tags With Hashtag Symbol Like Twitter
- Change Woo Custom Endpoint Titles from a Plugin
- Create a form and have custom menu display based on user answers?
- Showing how many times is plugin activated or deactivated
- submit form data to wordpress existing database table using my plugin
- register_activation_hook doesn’t fire at all
- Plugin communication between sites that use it?
- My ajax request don´t work and return 0
- Problem with conditional woocommerce custom checkout field
- Form tries to download a file on submit
- Populate select option with JSON file
- insert multiple entries in database using a loop issue
- Theme editor removes backslashes
- Plugin Hook: Get posts
- Plugin Breaking WordPress Login
- How to get site homepage from plugin?
- Undefined variable _POST
- Unable to show 4 products in a row
- What is the source outline for a basic word press plugin?
- Submit posts in two different post types with the same form
- how to search through plugin in wordpress cimy-user-extra-fields?
- How to add custom html to the Media > Attachment Details modal?
- Displaying Category Feature image on loop
- How to override plugin function in code snippets WordPress
- How to trigger plugin migration code when plugin updates?
- How to Save Category and Delete Category in same Function
- Accessing Correct Database to Create REST API Endpoint
- add_action() not working for admin
- Read page- or post-content across different builder-plugins
- How to make WordPress Plugin run on single specific Admin Page
- Error 400 Invalid “products[1].productId” Kinguin [closed]
- Custom page template from plugin does not work with pre-installed themes in WordPress 6.6.1