Changeset 47060 for trunk/src/wp-admin/includes/plugin.php
- Timestamp:
- 01/11/2020 06:30:58 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r47006 r47060 614 614 * or just the current site. Multisite only. Default false. 615 615 * @param bool $silent Optional. Whether to prevent calling activation hooks. Default false. 616 * @return null|WP_Error WP_Error on invalid file or null on success.616 * @return null|WP_Error Null on success, WP_Error on invalid file. 617 617 */ 618 618 function activate_plugin( $plugin, $redirect = '', $network_wide = false, $silent = false ) { … … 1343 1343 * @param callable $function The function to be called to output the content for this page. 1344 1344 * @param int $position The position in the menu order this item should appear. 1345 * @return false|stringThe resulting page's hook_suffix, or false if the user does not have the capability required.1345 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1346 1346 */ 1347 1347 function add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) { … … 1455 1455 * @param callable $function The function to be called to output the content for this page. 1456 1456 * @param int $position The position in the menu order this item should appear. 1457 * @return false|stringThe resulting page's hook_suffix, or false if the user does not have the capability required.1457 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1458 1458 */ 1459 1459 function add_management_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) { … … 1479 1479 * @param callable $function The function to be called to output the content for this page. 1480 1480 * @param int $position The position in the menu order this item should appear. 1481 * @return false|stringThe resulting page's hook_suffix, or false if the user does not have the capability required.1481 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1482 1482 */ 1483 1483 function add_options_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) { … … 1503 1503 * @param callable $function The function to be called to output the content for this page. 1504 1504 * @param int $position The position in the menu order this item should appear. 1505 * @return false|stringThe resulting page's hook_suffix, or false if the user does not have the capability required.1505 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1506 1506 */ 1507 1507 function add_theme_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) { … … 1527 1527 * @param callable $function The function to be called to output the content for this page. 1528 1528 * @param int $position The position in the menu order this item should appear. 1529 * @return false|stringThe resulting page's hook_suffix, or false if the user does not have the capability required.1529 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1530 1530 */ 1531 1531 function add_plugins_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) { … … 1551 1551 * @param callable $function The function to be called to output the content for this page. 1552 1552 * @param int $position The position in the menu order this item should appear. 1553 * @return false|stringThe resulting page's hook_suffix, or false if the user does not have the capability required.1553 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1554 1554 */ 1555 1555 function add_users_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) { … … 1580 1580 * @param callable $function The function to be called to output the content for this page. 1581 1581 * @param int $position The position in the menu order this item should appear. 1582 * @return false|stringThe resulting page's hook_suffix, or false if the user does not have the capability required.1582 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1583 1583 */ 1584 1584 function add_dashboard_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) { … … 1604 1604 * @param callable $function The function to be called to output the content for this page. 1605 1605 * @param int $position The position in the menu order this item should appear. 1606 * @return false|stringThe resulting page's hook_suffix, or false if the user does not have the capability required.1606 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1607 1607 */ 1608 1608 function add_posts_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) { … … 1628 1628 * @param callable $function The function to be called to output the content for this page. 1629 1629 * @param int $position The position in the menu order this item should appear. 1630 * @return false|stringThe resulting page's hook_suffix, or false if the user does not have the capability required.1630 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1631 1631 */ 1632 1632 function add_media_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) { … … 1652 1652 * @param callable $function The function to be called to output the content for this page. 1653 1653 * @param int $position The position in the menu order this item should appear. 1654 * @return false|stringThe resulting page's hook_suffix, or false if the user does not have the capability required.1654 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1655 1655 */ 1656 1656 function add_links_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) { … … 1676 1676 * @param callable $function The function to be called to output the content for this page. 1677 1677 * @param int $position The position in the menu order this item should appear. 1678 * @return false|stringThe resulting page's hook_suffix, or false if the user does not have the capability required.1678 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1679 1679 */ 1680 1680 function add_pages_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) { … … 1700 1700 * @param callable $function The function to be called to output the content for this page. 1701 1701 * @param int $position The position in the menu order this item should appear. 1702 * @return false|stringThe resulting page's hook_suffix, or false if the user does not have the capability required.1702 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1703 1703 */ 1704 1704 function add_comments_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) {
Note: See TracChangeset
for help on using the changeset viewer.