-
Notifications
You must be signed in to change notification settings - Fork 5
get_aeria_metabox
Alberto Parziale edited this page Aug 30, 2019
·
1 revision
To get all the fields for a single metabox, you can call get_aeria_metabox
.
-
$post
- WP post object - Searched fields' post. -
$metabox
- string - Searched fields' metabox ID.
The returned value is an array containing all the metabox's fields and, in case of multiple fields, their children too.
function getMetabox ()
{
$meta = get_aeria_metabox(get_post(), "metabox1");
return $meta;
}
add_action('aeria_booted', 'getMetabox');