ACF_Form_Post::render_meta_boxpublicACF 5.7.6

render_meta_box

Renders the ACF metabox HTML.

Method of the class: ACF_Form_Post{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ACF_Form_Post = new ACF_Form_Post();
$ACF_Form_Post->render_meta_box( $post, $metabox );
$post(WP_Post) (required)
The post being edited.
$metabox(required)
.

Changelog

Since 5.7.6 Introduced.

ACF_Form_Post::render_meta_box() code ACF 6.8.8

function render_meta_box( $post, $metabox ) {

	// vars
	$id          = $metabox['id'];
	$field_group = $metabox['args']['field_group'];

	// Render fields.
	$fields = acf_get_fields( $field_group );
	acf_render_fields( $fields, $post->ID, 'div', $field_group['instruction_placement'] );
}