You need a to use a few hooks for that
take a look at mike’s answer to a similar question.
Hope this Helps
Related Posts:
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- All Users > User List > Update User Meta Field Inline
- How to stop showing admin notice after close button has been clicked
- Add section (add_settings_section) to a custom page (add_submenu_page)
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- Is there any record of installed plugins in the database?
- Add content to /wp-admin/plugin-install.php admin screens
- Custom admin column disappearing when using Quick Edit [duplicate]
- How do I only load a plugin js on it’s settings pages?
- Custom plugin settings: clicking “save changes” does not display success message
- Plugin Development: WordPress processes twice on post update. How to skip process on the first?
- how to not show plugin in admin area
- How could I execute my plugin just in frontend (not in backend)
- Custom height/width for thickbox in WP Backend
- Hide Theme options and Customize Admin menu
- Making menu link open in new tab?
- Cannot access wp-admin after disabling all plugin
- ‘wp_login’ action hook not working with wp-login.php file
- Edit default comments page in WP Admin
- Display update notification messages like ‘What’s New’
- How to set add question capability for author role in wp pro quiz plugin
- Create tabs in admin options page from custom post type loop
- do_action() hook into load-(page)
- How to change the name of the “edit my profile” link in the WordPress admin backend
- Adding CSS to custom post type admin page causes error
- Admin AJAX doesn’t work in plugin admin page – Even though code is copied verbatim from WordPress Codex
- Add sub menu page in your plugin
- How to make multiple admin pages for one plugin?
- remove all submenus from plugin
- creating a plug in that would tap into save/update action of posts [closed]
- How to use the CSS of the WordPress core in the development of my administration page?
- WordPress Site is Broken, Cannot see wp-admin page [closed]
- getting notifications about updates only in the “core” page
- How to remove a CPT Menu from the Root Admin only
- Remove value from array within post meta ajax admin
- Is there a better way of handling AJAX requests in WordPress?
- Ajax request sends url rather than data
- How to add captcha to publish widget
- Adding a jQuery modal dialog to the admin area
- I cannot include a file in my plugin settings page
- force logged in user to stay in the dashboard
- How to create admin setting for this small plugin
- WC Fix Attributes – ‘Add New’ Not Searchable/Delayed
- How can we get this dynamically as this folder may not be by the same name always → wp-admin
- Hide all Admin Notices and move on a separate page
- How to properly enqueue jQuery knob on WordPress without conflict?
- Admin menu hilighting wrong item for CPT
- Is admin section completely customizable in terms of styling?
- Store admin page into variable
- Echo custom admin field into a is_single()
- Get content and send to 3rd party
- Getting 404 page not found error while trying to access add new plugin / themes
- Add custom fields in the new and edit the site forms without touching the WP core
- Ajax in Plugins: returns the whole page
- Gutenberg: Dynamic Block – Show saved data in the editor
- Combining JS files to one script
- Allow direct access to files/folders within WordPress to replace wp-admin
- The Admin page isn’t showing in the sidebar of the dashboard
- warning wp session
- Submitting form to admin-post.php WordPress
- Display Any Field fromAdmin Panel in Frontend via Shortcode?
- Form submission issue in wordpress admin (custom plugin) using $_GET for searching & filtering
- redirect logged users to custom front-end insetad of wp-admin
- 403 forbidden error in the admin panel as well as on the admin-ajax.php file
- media_sideload_image only works on localhost and without return id or src
- Don’t load the theme for a page FROM a plugin EDITED
- Extending a theme: build new features as plugin or core modules?
- How to set the default value as the saved value once a form of widget is saved?
- Equivalent of admin.php for public pages
- Plugin generating unexpected output – on WP mysql dump import
- Why are plugin settings not all nested in one place?
- Remember the Meta Value With Radio Buttons
- How to use add_action for multiple instances of the same class
- Remove specific administrator’s capability
- jQuery code didn’t run on my plugin
- How do I show content from a plugin using the template the site is currently working with?
- How to check homepage contain blog post?
- Plugin option default value
- problem with register_activation_hook in plugin
- Plugin permissions for Editor role
- The Events Calendar Plugin – List View Background Colour Issue [closed]
- Every time I de-activate a custom plugin, the site encounters a critical error
- Display my plugins content based on a pages post_id
- How to edit link for comment count
- Create “new pages” within the admin section of plugin
- A question of etiquette when forking a plugin? [closed]
- how to request a script more than once in wordpress
- Select Form Element Not Saving from Plugin Options
- Cannot access WP admin because plugin returns 204
- why the wp_register_script doesn’t work for register_activation_hook
- The “Child Pages Shortcode” plugin, block template
- My widget won’t update its values when save is clicked
- Install old version of plugin from admin panel?
- How to log custom plugin error to debug.log file
- Quick press publish post hook
- Add a Custom Field in Comment Box next to the Text area
- How do you create a re-useable HTML fragment in wordpress
- using wp_footer hook in a plugin
- Error: Can´t access facebook comment plugin admin page
- WordPress as heavily personalized content management portal, and somewhat like dropbox [closed]