-
Notifications
You must be signed in to change notification settings - Fork 5
get_aeria_fields
Alberto Parziale edited this page Aug 30, 2019
·
1 revision
#####get_aeria_fields($post)
Aeria fields are easy to fetch. You just need to call get_aeria_fields
with the desired post as argument. This will return an array containing the post's metaboxes and their fields' values.
-
$post
- WP post object - Searched fields' post.
The returned value is an array containing all Aeria fields for the post, indexed by metabox.
function getFields ()
{
$metas = get_aeria_fields(get_post());
return $metas;
}
add_action('aeria_booted', 'getFields');