Changeset 16831 for trunk/wp-admin/includes/plugin.php
- Timestamp:
- 12/09/2010 06:54:48 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin.php
r16829 r16831 863 863 * @param string $icon_url The url to the icon to be used for this menu 864 864 * @param int $position The position in the menu order this one should appear 865 * 866 * @return string The resulting page's hook_suffix 865 867 */ 866 868 function add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '', $position = NULL ) { … … 911 913 * @param callback $function The function to be called to output the content for this page. 912 914 * @param string $icon_url The url to the icon to be used for this menu 915 * 916 * @return string The resulting page's hook_suffix 913 917 */ 914 918 function add_object_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '') { … … 935 939 * @param callback $function The function to be called to output the content for this page. 936 940 * @param string $icon_url The url to the icon to be used for this menu 941 * 942 * @return string The resulting page's hook_suffix 937 943 */ 938 944 function add_utility_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '') { … … 959 965 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 960 966 * @param callback $function The function to be called to output the content for this page. 967 * 968 * @return string The resulting page's hook_suffix 961 969 */ 962 970 function add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { … … 1021 1029 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1022 1030 * @param callback $function The function to be called to output the content for this page. 1031 * 1032 * @return string The resulting page's hook_suffix 1023 1033 */ 1024 1034 function add_management_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { … … 1040 1050 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1041 1051 * @param callback $function The function to be called to output the content for this page. 1052 * 1053 * @return string The resulting page's hook_suffix 1042 1054 */ 1043 1055 function add_options_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { … … 1059 1071 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1060 1072 * @param callback $function The function to be called to output the content for this page. 1073 * 1074 * @return string The resulting page's hook_suffix 1061 1075 */ 1062 1076 function add_theme_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { … … 1078 1092 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1079 1093 * @param callback $function The function to be called to output the content for this page. 1094 * 1095 * @return string The resulting page's hook_suffix 1080 1096 */ 1081 1097 function add_plugins_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { … … 1097 1113 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1098 1114 * @param callback $function The function to be called to output the content for this page. 1115 * 1116 * @return string The resulting page's hook_suffix 1099 1117 */ 1100 1118 function add_users_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { … … 1119 1137 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1120 1138 * @param callback $function The function to be called to output the content for this page. 1139 * 1140 * @return string The resulting page's hook_suffix 1121 1141 */ 1122 1142 function add_dashboard_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { … … 1138 1158 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1139 1159 * @param callback $function The function to be called to output the content for this page. 1160 * 1161 * @return string The resulting page's hook_suffix 1140 1162 */ 1141 1163 function add_posts_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { … … 1157 1179 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1158 1180 * @param callback $function The function to be called to output the content for this page. 1181 * 1182 * @return string The resulting page's hook_suffix 1159 1183 */ 1160 1184 function add_media_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { … … 1176 1200 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1177 1201 * @param callback $function The function to be called to output the content for this page. 1202 * 1203 * @return string The resulting page's hook_suffix 1178 1204 */ 1179 1205 function add_links_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { … … 1195 1221 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1196 1222 * @param callback $function The function to be called to output the content for this page. 1197 */ 1223 * 1224 * @return string The resulting page's hook_suffix 1225 */ 1198 1226 function add_pages_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { 1199 1227 return add_submenu_page( 'edit.php?post_type=page', $page_title, $menu_title, $capability, $menu_slug, $function ); … … 1214 1242 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1215 1243 * @param callback $function The function to be called to output the content for this page. 1216 */ 1244 * 1245 * @return string The resulting page's hook_suffix 1246 */ 1217 1247 function add_comments_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { 1218 1248 return add_submenu_page( 'edit-comments.php', $page_title, $menu_title, $capability, $menu_slug, $function );
Note: See TracChangeset
for help on using the changeset viewer.