wphooks.info - do_meta_boxes

do_meta_boxes

(trunk - 5.0-alpha-43304)

The hook occurs in the following 8 files

wp-admin/edit-link-form.php:
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/**
 * Fires when link-specific meta boxes are added.
 *
 * @since 3.0.0
 *
 * @param object $link Link object.
 */
do_action( 'add_meta_boxes_link', $link );

/** This action is documented in wp-admin/edit-form-advanced.php */
do_action( 'do_meta_boxes', 'link', 'normal', $link );
/** This action is documented in wp-admin/edit-form-advanced.php */
do_action( 'do_meta_boxes', 'link', 'advanced', $link );
/** This action is documented in wp-admin/edit-form-advanced.php */
do_action( 'do_meta_boxes', 'link', 'side', $link );

add_screen_option(
	'layout_columns', array(
		'max'     => 2,
		'default' => 2,
wp-admin/edit-link-form.php:
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
 *
 * @since 3.0.0
 *
 * @param object $link Link object.
 */
do_action( 'add_meta_boxes_link', $link );

/** This action is documented in wp-admin/edit-form-advanced.php */
do_action( 'do_meta_boxes', 'link', 'normal', $link );
/** This action is documented in wp-admin/edit-form-advanced.php */
do_action( 'do_meta_boxes', 'link', 'advanced', $link );
/** This action is documented in wp-admin/edit-form-advanced.php */
do_action( 'do_meta_boxes', 'link', 'side', $link );

add_screen_option(
	'layout_columns', array(
		'max'     => 2,
		'default' => 2,
	)
);
wp-admin/edit-link-form.php:
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
 *
 * @param object $link Link object.
 */
do_action( 'add_meta_boxes_link', $link );

/** This action is documented in wp-admin/edit-form-advanced.php */
do_action( 'do_meta_boxes', 'link', 'normal', $link );
/** This action is documented in wp-admin/edit-form-advanced.php */
do_action( 'do_meta_boxes', 'link', 'advanced', $link );
/** This action is documented in wp-admin/edit-form-advanced.php */
do_action( 'do_meta_boxes', 'link', 'side', $link );

add_screen_option(
	'layout_columns', array(
		'max'     => 2,
		'default' => 2,
	)
);

get_current_screen()->add_help_tab(
wp-admin/includes/dashboard.php:
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
	if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST['widget_id'] ) ) {
		check_admin_referer( 'edit-dashboard-widget_' . $_POST['widget_id'], 'dashboard-widget-nonce' );
		ob_start(); // hack - but the same hack wp-admin/widgets.php uses
		wp_dashboard_trigger_widget_control( $_POST['widget_id'] );
		ob_end_clean();
		wp_redirect( remove_query_arg( 'edit' ) );
		exit;
	}

	/** This action is documented in wp-admin/edit-form-advanced.php */
	do_action( 'do_meta_boxes', $screen->id, 'normal', '' );

	/** This action is documented in wp-admin/edit-form-advanced.php */
	do_action( 'do_meta_boxes', $screen->id, 'side', '' );
}

/**
 * Adds a new dashboard widget.
 *
 * @since 2.7.0
wp-admin/includes/dashboard.php:
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
		wp_dashboard_trigger_widget_control( $_POST['widget_id'] );
		ob_end_clean();
		wp_redirect( remove_query_arg( 'edit' ) );
		exit;
	}

	/** This action is documented in wp-admin/edit-form-advanced.php */
	do_action( 'do_meta_boxes', $screen->id, 'normal', '' );

	/** This action is documented in wp-admin/edit-form-advanced.php */
	do_action( 'do_meta_boxes', $screen->id, 'side', '' );
}

/**
 * Adds a new dashboard widget.
 *
 * @since 2.7.0
 *
 * @global array $wp_dashboard_control_callbacks
 *
wp-admin/edit-form-advanced.php:
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
 * Fires once for each of the default meta box contexts: normal, advanced, and side.
 *
 * @since 3.0.0
 *
 * @param string                $post_type Post type for posts, 'dashboard' for dashboard widgets,
 *                                         'link' for links.
 * @param string                $context   Meta box context. Accepts 'normal', 'advanced', 'side'.
 * @param WP_Post|string|object $post      Post object for posts, empty string for dashboard widgets,
 *                                         link object for links.
 */
do_action( 'do_meta_boxes', $post_type, 'normal', $post );
/** This action is documented in wp-admin/edit-form-advanced.php */
do_action( 'do_meta_boxes', $post_type, 'advanced', $post );
/** This action is documented in wp-admin/edit-form-advanced.php */
do_action( 'do_meta_boxes', $post_type, 'side', $post );

add_screen_option(
	'layout_columns', array(
		'max'     => 2,
		'default' => 2,
wp-admin/edit-form-advanced.php:
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
 * @since 3.0.0
 *
 * @param string                $post_type Post type for posts, 'dashboard' for dashboard widgets,
 *                                         'link' for links.
 * @param string                $context   Meta box context. Accepts 'normal', 'advanced', 'side'.
 * @param WP_Post|string|object $post      Post object for posts, empty string for dashboard widgets,
 *                                         link object for links.
 */
do_action( 'do_meta_boxes', $post_type, 'normal', $post );
/** This action is documented in wp-admin/edit-form-advanced.php */
do_action( 'do_meta_boxes', $post_type, 'advanced', $post );
/** This action is documented in wp-admin/edit-form-advanced.php */
do_action( 'do_meta_boxes', $post_type, 'side', $post );

add_screen_option(
	'layout_columns', array(
		'max'     => 2,
		'default' => 2,
	)
);
wp-admin/edit-form-advanced.php:
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
 * @param string                $post_type Post type for posts, 'dashboard' for dashboard widgets,
 *                                         'link' for links.
 * @param string                $context   Meta box context. Accepts 'normal', 'advanced', 'side'.
 * @param WP_Post|string|object $post      Post object for posts, empty string for dashboard widgets,
 *                                         link object for links.
 */
do_action( 'do_meta_boxes', $post_type, 'normal', $post );
/** This action is documented in wp-admin/edit-form-advanced.php */
do_action( 'do_meta_boxes', $post_type, 'advanced', $post );
/** This action is documented in wp-admin/edit-form-advanced.php */
do_action( 'do_meta_boxes', $post_type, 'side', $post );

add_screen_option(
	'layout_columns', array(
		'max'     => 2,
		'default' => 2,
	)
);

if ( 'post' == $post_type ) {