Skip to content

get_aeria_metabox

Alberto Parziale edited this page Aug 30, 2019 · 1 revision

get_aeria_metabox

get_aeria_metabox($post, $metabox)

Description

To get all the fields for a single metabox, you can call get_aeria_metabox.

Parameters

  • $post - WP post object - Searched fields' post.
  • $metabox - string - Searched fields' metabox ID.

Return value

The returned value is an array containing all the metabox's fields and, in case of multiple fields, their children too.

Example

function getMetabox ()
{
	$meta = get_aeria_metabox(get_post(), "metabox1");
	return $meta;
}

add_action('aeria_booted', 'getMetabox');
Clone this wiki locally