Changeset 34952 for trunk/src/wp-admin/includes/template-functions.php
- Timestamp:
- 10/08/2015 07:12:25 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template-functions.php
r34951 r34952 855 855 * @global array $wp_meta_boxes 856 856 * 857 * @param string $id String for use in the 'id' attribute of tags.858 * @param string $title Title of the meta box.859 * @param callable $callback Function that fills the box with the desired content.860 * The function should echo its output.861 * @param string|array|WP_Screen $screen Optional. The screen or screens on which to show the box862 * (such as a post type, 'link', or 'comment'). Accepts a single863 * screen ID, WP_Screen object, or array of screen IDs. Default864 * is the current screen.865 * @param string $context Optional. The context within the screen where the boxes866 * should display. Available contexts vary from screen to867 * screen. Post edit screen contexts include 'normal', 'side',868 * and 'advanced'. Comments screen contexts include 'normal'869 * and 'side'. Menus meta boxes (accordion sections) all use870 * the 'side' context. Global default is 'advanced'.871 * @param string $priority Optional. The priority within the context where the boxes872 * should show ('high', 'low'). Default 'default'.873 * @param array $callback_args Optional. Data that should be set as the $args property874 * of the box array (which is the second parameter passed875 * to your callback). Default null.857 * @param string $id Meta box ID (used in the 'id' attribute for the meta box). 858 * @param string $title Title of the meta box. 859 * @param callable $callback Function that fills the box with the desired content. 860 * The function should echo its output. 861 * @param string|array|WP_Screen $screen Optional. The screen or screens on which to show the box 862 * (such as a post type, 'link', or 'comment'). Accepts a single 863 * screen ID, WP_Screen object, or array of screen IDs. Default 864 * is the current screen. 865 * @param string $context Optional. The context within the screen where the boxes 866 * should display. Available contexts vary from screen to 867 * screen. Post edit screen contexts include 'normal', 'side', 868 * and 'advanced'. Comments screen contexts include 'normal' 869 * and 'side'. Menus meta boxes (accordion sections) all use 870 * the 'side' context. Global default is 'advanced'. 871 * @param string $priority Optional. The priority within the context where the boxes 872 * should show ('high', 'low'). Default 'default'. 873 * @param array $callback_args Optional. Data that should be set as the $args property 874 * of the box array (which is the second parameter passed 875 * to your callback). Default null. 876 876 */ 877 877 function add_meta_box( $id, $title, $callback, $screen = null, $context = 'advanced', $priority = 'default', $callback_args = null ) { … … 1031 1031 * @global array $wp_meta_boxes 1032 1032 * 1033 * @param string $id String for use in the 'id' attribute of tags. 1034 * @param string|array|WP_Screen $screen The screen or screens on which the meta box is shown (such as a 1035 * post type, 'link', or 'comment'). Accepts a single screen ID, 1036 * WP_Screen object, or array of screen IDs. 1037 * @param string $context The context within the page where the boxes should show ('normal', 'advanced'). 1033 * @param string $id Meta box ID (used in the 'id' attribute for the meta box). 1034 * @param string|array|WP_Screen $screen The screen or screens on which the meta box is shown (such as a 1035 * post type, 'link', or 'comment'). Accepts a single screen ID, 1036 * WP_Screen object, or array of screen IDs. 1037 * @param string $context Optional. The context within the screen where the boxes 1038 * should display. Available contexts vary from screen to 1039 * screen. Post edit screen contexts include 'normal', 'side', 1040 * and 'advanced'. Comments screen contexts include 'normal' 1041 * and 'side'. Menus meta boxes (accordion sections) all use 1042 * the 'side' context. Global default is 'advanced'. 1038 1043 */ 1039 1044 function remove_meta_box( $id, $screen, $context ) {
Note: See TracChangeset
for help on using the changeset viewer.