Simply register an additional sub-admin page for your plugin More info here. Then perform a wp_remote_request()
to fetch the data. Loop through the results, display it in some sort of view for the end user – for e.g. a WP_List_Table
and save your post types. Name the admin sub menu entry “Updates” and you’re done.
If you really need to implement another update button, use the same styles as get_submit_button()
– the native WP admin button – uses and add them to an anchor/link that links to your sub-admin page. This as well separates the user feedback (the view) from the rest of the page, let’s your plugin shine more, goes inline with WP core admin styles and overall let’s your plugin look bigger with a better separation of concerns.
Hint: Click through all the links in this answer, as I linked to previous answers that explain the details.
Related Posts:
- How to debug new shortcode? And how to get string from shortcode into code?
- How can I interact with a third party service that sends POST requests to me in response to the order information that I send them?
- Is there any plugin development framework
- How do I add CSS options to my plugin without using inline styles?
- How to override existing plugin action with new action
- Add custom TinyMCE 4 Button, Usable since WordPress 3.9-beta1
- How to store username and password to API in wordpress option DB?
- Which hook should be used to add an action containing a redirect?
- Handling results from data hooked into admin_post
- How do I create links at the top of WP_List_table?
- Is it worth checking if class_exists when developing a plugin and how to do it?
- Why Does get_posts() Return an Empty Set?
- Get list of available wordpress actions
- Where to enqueue stylesheets for plugin?
- How do I resolve Notice: Undefined offset: 0 in /wp-includes/capabilities.php on line 1145
- How can i list current author’s categories?
- How can the tinyMCE dom be manipulated (offical API does not seem to work)?
- stray elements
- Deletion of shared options using uninstall.php
- Pass javascript result to shortcode executer function
- Plugin Settings not Saving on Ajax re-ordered table
- Can we create a category list page in WordPress?
- How to include class from addon after to be sure one class exists in the main plugin?
- Add Post and Comments menu no longer visible
- Undefined function wp_set_password
- WordPress password reset – why post rp_key?
- How to modify the new WordPress 4.5 link inline toolbar
- Is it possible to check is loaded language files correctly with WordPress plugin?
- Proper way to hook wp_get_attachment_url
- How to install WordPress Popular Posts plugin twice?
- Get the link text
- Multisite plugin development and wp_enqueue_script
- Prevent plugin from deleting important directories
- Default category got deleted. How to get it back as ID=1?
- Is Dreamweaver CS5 a serious choice for theme/plugin development?
- What allows a template file from plugin to be copied in child theme and overridden?
- How to set “Site Address (URL)” programmatically on WP multisite?
- creating custom archive template within plugin for custom post type using archive_template filter
- Modify hard-coded conditionals for roles to custom roles
- Reset plugins version cache | pre_set_site_transient_update_plugins
- Add column and post filter for a custom post type field on the edit.php page
- Trying to understand order and frequency of action hooks firing
- Getting term_id for newly created or edited term
- How to insert text at the current cursor position in Gutenberg?
- How to fix this URL error in WordPress ” data-wplink-url-error=”true”>
- Remove unwanted elements for a wp_nav_menu
- What is the proper method of using global $post?
- Edit Images From the Front End without Access to WP Admin
- How to remove or add submenu item on plugin activate or deactive
- how to add stylesheet to particular plugin only?
- Difference between wp_salt schemes
- WordPress daily cron is executing more frequently than once a day
- How can I replace the search results displayed by WordPress?
- How to modify files inside wp-includes directory in wordpress
- What is the best way to store a few fields?
- add_submenu_page hooked function must explicitly check user capabilities – why?
- I18n not working in plugin
- making a plugin that moves other plugins wp_head actions to wp_footer
- Mixing l18n string from my plugin with WordPress’ translations
- How to redirect to login page when user not loggedin on a particular page
- Non editable custom taxonomy
- How to resize WordPress images on upload to specific height and width without cropping it
- Get section of input passed to the sanitize_callback
- Checking for existing title in custom db query not working
- How to add a new taxonomy link to the admin menu
- Many Single Sites, One Plugin directory – adjust plugins_url()
- insufficient permissions; coding an action for plugin governed by custom capability
- Adding tables to dashboard pages programmatically?
- My plugin creates custom widgets, How can I programatically add them to existing sidebar widget areas?
- how to add custom fields into new & update post page?
- Custom Endpoint – Does it possible to use PUT method with WP API Rest?
- Condition to check previous next article post title
- How to know if current plugin is going to be used while rendering the page?
- Dynamically modify content added to table via javascript
- functions won’t fire after I converted my code from procedural code to OOP
- How to prevent wp_insert_post from creating a new post every second?
- CPT UI and custom database table
- Multisite and the JSON REST API: How to?
- Updating a WP Plugin SVN not showing on WordPress Website or Zip
- Download stopped working in 4.7.4
- $wpdb Mysql trigger problem
- Calling dynamic_sidebar in plugin gives error
- How to add chunk of php, html, and sql code to variable an append to $content
- edit-tags.php in plugin admin menu hides when is the active page
- WordPress postboxes On Tabbed Views and Hiding Registered Pages
- Best way to handle a form post in plugin
- grouping my widgets wordpress
- Creating custom Insert Media page
- Yet another wp_insert_post infinite loop. What is wrong?
- Initialize class inside plugin
- Why does this fail: Disabling plugins enqueue_script() in functions.php
- “Print to printer” functionality in a plugin
- Remove text from confirmation message
- Which subset of html does WordPress support?
- Can I use an array to create multiple tables?
- How to set init for maximum script execution, memory limit and max files upload in wordpress
- Trying to build a plugin – Cannot modify header information
- Reinitiate Gutenburg’s blocks using javascript
- Generating Multiple Divi Pages from Database
- Is it smart to require_once wp-admin/includes/plugin.php when you need only one function from it