You could target admin-post.php
to do the processing via the admin_post_$youraction
hook:
This hook allows you to create custom handlers for your own custom GET and POST requests. The admin_post_ hook follows the format “admin_post_$youraction”, where $youraction is your GET or POST request’s ‘action’ parameter.
You can output the URL via admin_url( 'admin-post.php?action=add_foobar' )
. Then hook your code:
add_action( 'admin_post_add_foobar', 'prefix_admin_add_foobar' );
function prefix_admin_add_foobar() {
// Handle request then generate response using echo or leaving PHP and using HTML
}
If you want to update things as you go, then probably AJAX is what you want, which works similarly to the above, with an action parameter that maps to an action hook.
Related Posts:
- InDesign to WordPress workflow
- Why doesn’t the WordPress Importer update posts?
- Some way to Flush or Overwrite all Imported Content in a Site for a Fresh Import – How?
- WordPress import does not fetch images, but just links them
- I am trying to match the wpallimport using the Xpath Filter
- Unable to activate wordpress importer after installing it
- Exporting and importing my WordPress database, but none of the plugin settings are importing
- Why Won’t Exported Blog From One Site Import Into New Site?
- Media is not attached after import
- Creating an online questionnaire form – by Importing the questions from a spreadsheet?
- WordPress Gutenberg react make import of __experimentalUseInnerBlocksProps which is no more experimetal
- CSV syntax for WP All Import upload without ACF
- WP ALL Import plugin – import data from certain ids
- How to export post 2 posts WordPress plugin data [closed]
- WP All Import – Execute Imports
- import posts with dutch/special letters
- WordPress plugin admin html being shown in Customizer iframe
- Permalinks stopped working after migration with WP all-in-one migration plugin
- WordPress and a secondary database?
- How to export all content with feature images?
- Import Instagram post to WordPress blog post
- WP.org acceptable iframe alternative
- Plugin generating unexpected output – on WP mysql dump import
- Attachments broken after giving WordPress its own directory
- WordPress does not allow me to upload a .xml file
- How to disable login in iframe which is hosted in same domain?
- Import Recent Posts Only and Ignore old ones if exist
- Save log for imports in WordPress database – options-table, custom post type or other place?
- Import a folder containing HTML files and images to WordPress
- Bulk Edit Media Library alt, caption, image names
- best way to upload a large file to wordpress using wp all import
- Add a WooCommerce Product Variant with attributes programmatically
- How to solve Blocked a frame with origin from accessing a cross origin frame error in wordpress?
- Import only new articles from Joomla to WordPress
- How to add plugin css and js to iframe
- Import tumblr post to wordpress blog
- phpBB 3 to bbPress
- iframe not showing on frontend when using a CMB2 field
- A way to upload old html pages with all its assets via WordPress admin and to add a fixed menu on top of those (a la Wayback Machine)
- How to export and import plugin data through WordPress tools option
- Include theme header and footer in custom plugin
- How to prevent WP All Export from wrapping XML nodes in CDATA? [closed]
- plugins not working in custom theme
- How to use template_include hook with form submission?
- Adding Plugin Assets to Header
- Release the plugin in the WordPress repository where redux is used
- How to Define Multiple List Tables in a Single Submenu
- Add item to the woocommerce dashboard menu from a plugin
- Can the uniqueness of the plugin file/plugin slug and version number be trusted?
- Add type to enqueued script inside plugin
- Dokan Marketplace store link in single product page
- How can I redirect some pages to new subdomain? [closed]
- Automatically download, install and activate plugins that my plugin depends, how?
- Integrating boxtal PHP library into a custom WordPress Plugin
- wp-mail attachment is not sent for no reason?
- Translations for my plugin don’t show up
- Changing menu order of a specific plugin in dashboard
- Error in pdf generating plugin using FPDF
- syntax error, unexpected ‘while’ (t_while) please help :)
- How to create WordPress custom end point with multiple parameters?
- Plugin has added weird data in wp_options, set to autoload
- Different custom templates for product category [closed]
- Text change in Advanced Customs Fields [closed]
- How to remove bulk actions from custom post type
- After updating the WordPress getting a syntax error in the console
- Images under 1MB are not being compressed
- How to check wp_options’s rewrite_rules if current and existing are the same before flush the rules?
- What is the easiest way to rename a plugin (and also avoid plugin updates)
- Setting Email locale before retrieving gettext translations
- Changes not visible when not logged in
- Display linked articles at the bottom of post (like related posts)
- Simulating a wp page – wp page load sequence
- register_activation_hook() not working as expected
- How to redirect to same page after form submission
- Any idea how to get something like this to work? [closed]
- WordPress Ajax code is not Working
- Is there a maximum length to a WordPress Page?
- Skewed / slanted button within elementor [closed]
- I changed .live() to .on() but change is not reflected on the server
- How to find out whether a plugin is used in pages or posts?
- WooCommerce – set session with new cart item meta when updating cart item quantity [closed]
- Trying to add a page template for my custom post type from a plugin, but it will not display in the template dropdown unless file is in theme
- flush_rewrite_rules() not working with update_option_{$option}
- How to get the particular product quantity in orders in Woocommerce [closed]
- plugin dev – minimum base css specificity?
- Using WordPress to build membership Page
- How to generate an all in one WordPress New content, plugin and theme update report on a website? [closed]
- Tutor LMS problem with Paid Memberships Pro [closed]
- Is there a plugin for WordPress for creating ‘Accounts’ where all users who belong to that Account can only see Account data? [closed]
- A server-side hook failed when committing plugin code to SVN
- Custom shortcode for displaying user based on a role parameter
- Help with comments.php
- How to execute plugin and theme updates from a web hook / endpoint?
- WordPress Plugin Insert Html Code with Shortcode
- Content-Security-Policy Headers are there and showing the correct settings, but still getting a refused connection
- Set WordPress Transient Expiration via Variable Value
- Vulnerability Concern From the Plugin or From Not Updating the Plugin?
- PHP Warning: Declaration of aec_contributor_list::form() should be compatible with WP_Widget::form($instance)
- How to remove index meta tag
- don’t call ajax if not plugin page