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?
- Pass PHP variable to javascript
- Creating a user’s own folder on user registration
- Problem requiring/including plugin files with plugin_dir_path( __FILE__ )
- How to enable Admins to see Plugins
- Adding Image in readme.txt file of wordpress plugin
- Saving Plugin settings to the database
- $wpdb->get_results() does not fetch results with unicode ‘WHERE’ clause
- Deleting images through upload folder, but not deleting from media library
- how to use ajax to display from database and load more in wordpress plugin
- WordPress plugin installation
- Get image URL from media library in input
- Create or Update thousands of woocommerce products via PHP
- Update Option Error: Notice: Undefined index
- Why this global array is returning NULL from a callback function
- Why my Plugin keeps deactivating automatically?
- Self deactivate plugins after an action occurs
- How to get current post user id
- Layout Plugin Admin Pages: Use BootStrap? [closed]
- switched from query_posts to WP_query, not working now?
- Ajax contact form widget plugin data not insert in database
- Install Plugin via Code
- How to output CMB2 select options from repeated groups select elements?
- Homemade plugin while using Themify Ultra
- How to deal with WordPress and Pocket API to automate content curation on my hosted wordpress blog? [closed]
- WordPress get_avatar function not correct working
- Can I use Symfony components in a plugin that I want to submit to the WordPress plugin repository?
- Custom license for WordPress plugin
- Plugin not properly prepared for localization
- How to add filter for wordpress plugin?
- Gathering all Custom Post Type posts in to array/object the proper way
- i need to make custom cron_schedule with custom interval time as a parameter into a custom payment gateway plugin wordpress
- How to upload large media file in chunks, without any plugin?
- How to store a secret for a plugin inside public_html
- How to use functions found inside pluggable.php with my plugin files
- How to enable Admins to see Plugins
- Get Core Functionality from Within a (Secondary) Plugin File
- Output pure JSON wordpress
- Screen Options drop-down does not show
- Activate plugin button do nothing [closed]