Title: wp-admin/includes/plugin.php | Page 2 of 3 | Developer.WordPress.org

---

# File: wp-admin/includes/plugin.php

 * function[add_dashboard_page()](https://developer.wordpress.org/reference/functions/add_dashboard_page/)
 * Adds a submenu page to the Dashboard main menu.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/add_dashboard_page/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/add_dashboard_page/#uses)
   | Source: [wp-admin/includes/plugin.php:1724](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L1724-L1726)
 * function[is_uninstallable_plugin()](https://developer.wordpress.org/reference/functions/is_uninstallable_plugin/)
 * Determines whether the plugin can be uninstalled.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/is_uninstallable_plugin/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/is_uninstallable_plugin/#uses)
   | Source: [wp-admin/includes/plugin.php:1280](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L1280-L1289)
 * function[add_posts_page()](https://developer.wordpress.org/reference/functions/add_posts_page/)
 * Adds a submenu page to the Posts main menu.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/add_posts_page/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/add_posts_page/#uses)
   | Source: [wp-admin/includes/plugin.php:1748](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L1748-L1750)
 * function[uninstall_plugin()](https://developer.wordpress.org/reference/functions/uninstall_plugin/)
 * Uninstalls a single plugin.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/uninstall_plugin/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/uninstall_plugin/#uses)
   | Source: [wp-admin/includes/plugin.php:1302](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L1302-L1353)
 * function[add_media_page()](https://developer.wordpress.org/reference/functions/add_media_page/)
 * Adds a submenu page to the Media main menu.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/add_media_page/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/add_media_page/#uses)
   | Source: [wp-admin/includes/plugin.php:1772](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L1772-L1774)
 * hook[uninstall_{$file}](https://developer.wordpress.org/reference/hooks/uninstall_file/)
 * Fires in uninstall_plugin() once the plugin has been uninstalled.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/uninstall_file/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/uninstall_file/#uses)
   | Source: [wp-admin/includes/plugin.php:1351](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L1351-L1351)
 * function[add_links_page()](https://developer.wordpress.org/reference/functions/add_links_page/)
 * Adds a submenu page to the Links main menu.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/add_links_page/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/add_links_page/#uses)
   | Source: [wp-admin/includes/plugin.php:1796](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L1796-L1798)
 * function[add_menu_page()](https://developer.wordpress.org/reference/functions/add_menu_page/)
 * Adds a top-level menu page.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/add_menu_page/#used-by)
   | Uses [8 functions](https://developer.wordpress.org/reference/functions/add_menu_page/#uses)
   | Source: [wp-admin/includes/plugin.php:1391](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L1391-L1452)
 * function[add_pages_page()](https://developer.wordpress.org/reference/functions/add_pages_page/)
 * Adds a submenu page to the Pages main menu.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/add_pages_page/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/add_pages_page/#uses)
   | Source: [wp-admin/includes/plugin.php:1820](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L1820-L1822)
 * function[add_submenu_page()](https://developer.wordpress.org/reference/functions/add_submenu_page/)
 * Adds a submenu page.
 * Used by [14 functions](https://developer.wordpress.org/reference/functions/add_submenu_page/#used-by)
   | Uses [7 functions](https://developer.wordpress.org/reference/functions/add_submenu_page/#uses)
   | Source: [wp-admin/includes/plugin.php:1486](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L1486-L1577)
 * function[add_comments_page()](https://developer.wordpress.org/reference/functions/add_comments_page/)
 * Adds a submenu page to the Comments main menu.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/add_comments_page/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/add_comments_page/#uses)
   | Source: [wp-admin/includes/plugin.php:1844](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L1844-L1846)
 * function[add_management_page()](https://developer.wordpress.org/reference/functions/add_management_page/)
 * Adds a submenu page to the Tools main menu.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/add_management_page/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/add_management_page/#uses)
   | Source: [wp-admin/includes/plugin.php:1599](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L1599-L1601)
 * function[_get_dropins()](https://developer.wordpress.org/reference/functions/_get_dropins/)
 * Returns drop-in plugins that WordPress uses.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/_get_dropins/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/_get_dropins/#uses)
   | Source: [wp-admin/includes/plugin.php:500](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L500-L520)
 * function[activate_plugins()](https://developer.wordpress.org/reference/functions/activate_plugins/)
 * Activates multiple plugins.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/activate_plugins/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/activate_plugins/#uses)
   | Source: [wp-admin/includes/plugin.php:869](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L869-L890)
 * function[is_plugin_active()](https://developer.wordpress.org/reference/functions/is_plugin_active/)
 * Determines whether a plugin is active.
 * Used by [26 functions](https://developer.wordpress.org/reference/functions/is_plugin_active/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/is_plugin_active/#uses)
   | Source: [wp-admin/includes/plugin.php:539](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L539-L541)
 * function[delete_plugins()](https://developer.wordpress.org/reference/functions/delete_plugins/)
 * Removes directory and files of a plugin for a list of plugins.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/delete_plugins/#used-by)
   | Uses [13 functions](https://developer.wordpress.org/reference/functions/delete_plugins/#uses)
   | Source: [wp-admin/includes/plugin.php:904](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L904-L1058)
 * function[is_plugin_inactive()](https://developer.wordpress.org/reference/functions/is_plugin_inactive/)
 * Determines whether the plugin is inactive.
 * Used by [7 functions](https://developer.wordpress.org/reference/functions/is_plugin_inactive/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/is_plugin_inactive/#uses)
   | Source: [wp-admin/includes/plugin.php:559](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L559-L561)
 * function[validate_active_plugins()](https://developer.wordpress.org/reference/functions/validate_active_plugins/)
 * Validates active plugins.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/validate_active_plugins/#used-by)
   | Uses [8 functions](https://developer.wordpress.org/reference/functions/validate_active_plugins/#uses)
   | Source: [wp-admin/includes/plugin.php:1069](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L1069-L1097)
 * function[is_plugin_active_for_network()](https://developer.wordpress.org/reference/functions/is_plugin_active_for_network/)
 * Determines whether the plugin is active for the entire network.
 * Used by [8 functions](https://developer.wordpress.org/reference/functions/is_plugin_active_for_network/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/is_plugin_active_for_network/#uses)
   | Source: [wp-admin/includes/plugin.php:580](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L580-L591)
 * function[is_network_only_plugin()](https://developer.wordpress.org/reference/functions/is_network_only_plugin/)
 * Checks for “Network: true” in the plugin header to see if this should be activated
   only as a network wide plugin. The plugin would also work when Multisite is not
   enabled.
 * Used by [6 functions](https://developer.wordpress.org/reference/functions/is_network_only_plugin/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/is_network_only_plugin/#uses)
   | Source: [wp-admin/includes/plugin.php:605](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L605-L611)
 * function[activate_plugin()](https://developer.wordpress.org/reference/functions/activate_plugin/)
 * Attempts activation of plugin in a “sandbox” and redirects on success.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/activate_plugin/#used-by)
   | Uses [17 functions](https://developer.wordpress.org/reference/functions/activate_plugin/#uses)
   | Source: [wp-admin/includes/plugin.php:641](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L641-L742)
 * hook[activate_{$plugin}](https://developer.wordpress.org/reference/hooks/activate_plugin/)
 * Fires as a specific plugin is being activated.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/activate_plugin/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/activate_plugin/#uses)
   | Source: [wp-admin/includes/plugin.php:703](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L703-L703)
 * hook[activated_plugin](https://developer.wordpress.org/reference/hooks/activated_plugin/)
 * Fires after a plugin has been activated.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/activated_plugin/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/activated_plugin/#uses)
   | Source: [wp-admin/includes/plugin.php:730](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L730-L730)
 * function[deactivate_plugins()](https://developer.wordpress.org/reference/functions/deactivate_plugins/)
 * Deactivates a single plugin or multiple plugins.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/deactivate_plugins/#used-by)
   | Uses [11 functions](https://developer.wordpress.org/reference/functions/deactivate_plugins/#uses)
   | Source: [wp-admin/includes/plugin.php:758](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L758-L850)
 * function[_sort_uname_callback()](https://developer.wordpress.org/reference/functions/_sort_uname_callback/)
 * Declares a callback to sort array by a ‘Name’ key.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/_sort_uname_callback/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/_sort_uname_callback/#uses)
   | Source: [wp-admin/includes/plugin.php:427](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L427-L429)
 * hook[deactivate_{$plugin}](https://developer.wordpress.org/reference/hooks/deactivate_plugin/)
 * Fires as a specific plugin is being deactivated.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/deactivate_plugin/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/deactivate_plugin/#uses)
   | Source: [wp-admin/includes/plugin.php:826](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L826-L826)
 * function[get_dropins()](https://developer.wordpress.org/reference/functions/get_dropins/)
 * Checks the wp-content directory and retrieve all drop-ins with any plugin data.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/get_dropins/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/get_dropins/#uses)
   | Source: [wp-admin/includes/plugin.php:437](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L437-L479)
 * hook[deactivated_plugin](https://developer.wordpress.org/reference/hooks/deactivated_plugin/)
 * Fires after a plugin is deactivated.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/deactivated_plugin/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/deactivated_plugin/#uses)
   | Source: [wp-admin/includes/plugin.php:840](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L840-L840)
 * function[get_plugin_data()](https://developer.wordpress.org/reference/functions/get_plugin_data/)
 * Parses the plugin contents to retrieve plugin’s metadata.
 * Used by [12 functions](https://developer.wordpress.org/reference/functions/get_plugin_data/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/get_plugin_data/#uses)
   | Source: [wp-admin/includes/plugin.php:74](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L74-L121)
 * function[_get_plugin_data_markup_translate()](https://developer.wordpress.org/reference/functions/_get_plugin_data_markup_translate/)
 * Sanitizes plugin data, optionally adds markup, optionally translates.
 * Used by [4 functions](https://developer.wordpress.org/reference/functions/_get_plugin_data_markup_translate/#used-by)
   | Uses [8 functions](https://developer.wordpress.org/reference/functions/_get_plugin_data_markup_translate/#uses)
   | Source: [wp-admin/includes/plugin.php:140](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/plugin.php#L140-L222)

 [Previous Page](https://developer.wordpress.org/reference/files/wp-admin/includes/plugin.php/?output_format=md)

[1](https://developer.wordpress.org/reference/files/wp-admin/includes/plugin.php/?output_format=md)
2 [3](https://developer.wordpress.org/reference/files/wp-admin/includes/plugin.php/page/3/?output_format=md)

 [Next Page](https://developer.wordpress.org/reference/files/wp-admin/includes/plugin.php/page/3/?output_format=md)