You can only do this by “loading content into all the posts in the blog” asynchronously (in the background).
So, move the processing inside a function that you hook on wp_ajax_your_action_tag.
Then call this function with javascript by requesting WP to fire “your_action_tag”. There’s a example on the linked page…
If you want to display completion status, like a percentage bar, you might want to send an additional query variable besides the “action”, like the offset from where the processing should continue. This offset would be increased in your processing function and sent back to the javascript, which calculates the status.
Related Posts:
- What’s the best method for emptying an option created with the Settings API?
- Add Admin Menu Inside Construct or Init
- WordPress theme options Menu
- adding an options menu that allows saving multiple sets of said options
- Settings API with arrays example
- “Error: Options Page Not Found” on Settings Page Submission for an OOP Plugin
- Is get_option function cached?
- Passing arguments to a admin menu page callback?
- What are the advantages to the Settings API?
- Where to store plugin settings fields
- How to Use Checkbox in Custom Option Page Using The Setting API
- How should one implement add_settings_error on custom menu pages?
- Accessing plugin settings in gutenberg
- Admin settings update updating every time home page is hit?
- What is the recommended way to create plugin administration forms?
- How to add a new plugin page under desired Options page?
- Which to use to execute code during the saving of a plugin settings page?
- Is it possible to add an admin page using add_submenu_page() and pass a var in the query string?
- Nonce in settings API with tabbed navigation
- Overwriting Core WordPress Functions with Plugins
- How to use the settings API to set multidimensional arrays
- Naming Admin Menus and Submenus
- Current class on admin menu using add_submenu_page()
- Why won’t register_setting() create a setting?
- Settings API – Undefined Index when unchecking checkbox
- Disable $title in Plugin Options Screen?
- WordPress Settings API: saving multiple rows of similar data
- Hook event for upload image in the menu
- Menu Error in Admin Console with Custom Plugin: You do not have sufficient permissions to access this page
- Why isn’t the Settings API designed to work for plugins using custom admin menus? [duplicate]
- add_menu_page() with function inside a class [duplicate]
- How to add Font Awesome 5 icons in WP Admin dashboard menu?
- How to put placeholder text in the main post input area?
- Unified Approach for Placing Option Pages
- Plugin with specific admin menu icon
- Does settings API create settings on run time?
- Performance of several get_option() calls
- What is the use of get_option method
- Extend plugin options page
- Can I use the different settings sections over different pages using the save options group?
- Generating User(s) with Settings API
- Callback function is being called twice
- plugin development: storing language specific options
- How to add a secondary button to a settings page with a custom action?
- Correct way check nonce (security) using old Options API
- Tabbed navigation for plugin options using same row in database for all?
- OOP Plugin and Menu – Call to undefined function register_setting()
- Settings not set after calling register_setting()
- Using the Settings API, how should I add multiple values to an option?
- GET parameters interfere with my plugin settings
- Plugin settings not saving
- How to add settings subpage from a plugin to a settings page created in theme?
- Remove Internal Style Sheet if no Value Provided?
- WordPress setting with select – where is my mistake?
- null callback in add_settings_section
- Single sanitization callback for multiple fields
- Callback is not called in add_settings_field() when passed as part of an array, but recognises that it’s there. It’s passed Class to Class using OOP
- Custom delete option button in plugin settings
- When to use add_settings_section vs just register_setting?
- Adding settings link to plugin doesn’t work
- Global State During an Admin Post
- How to fix Uninitialized string offset: error on a checkbox in WP Settings API
- Howto: Use Custom Post Types as Submenu Items in Admin
- Sub Menu content is being duplicated
- Plugin development: can’t update settings with multiple settings sections
- Set different custom menu items for different user roles
- Show/Hide ‘add new user’ custom fields in wordpress admin panel by click another field
- Bootstrap doesn’t work on admin menu page-How to override wp-admin style?
- Updating Woocommerce Settings API when WordPress Settings API saved and vise versa
- is it recommended to use WP_List_Table?
- Plugin sub-menu pages recommended structure and links
- The plugin does not save data
- Settings API with arrays example
- Prevent invalid or empty values from being saved to the database and retain the form field values upon error
- Allow users to add / remove settings in plugin
- Update problem with update_option() in combination with register_setting()
- Creating Admin Plugin – Content of a page is displayed at global scope as well
- Add a page in admin without adding menu item
- Silently register plugin pages
- Default settings aren’t used
- Print Dashboard submenu name and filename
- Category select options for plugin settings
- Issue on Checkbox with Custom Option Page
- I am trying to make a page in the admin section similar to the appearance of the Profile page for users
- Unable to get a simple plugin admin page to work
- how to save checkbox data for custom setting?
- Settings API: Setting default option via ‘get_option’ fails
- settings api – add_settings_section not working
- Disable Auto-Expanding Menu in WordPress Admin Menus
- in_array function Problem
- custom wp_editor does not save the content in plugin settings
- Multiple page plugin settings
- Plugin settings are saving but the fields
- Use options to control jQuery plugin
- Update plugin settings option_name for big plugin update
- Restrict certain actions to plugin-specific admin menu pages only
- Proper way to create an administration page without adding it to the menu
- How to add text editor in plugin menu?
- How to make an admin plugin menu page go full screen?
- It is possible to pass $args that sent by add_settings_field() inside another function?