Skip to content

get_aeria_fields

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

get_aeria_fields

#####get_aeria_fields($post)

Description

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.

Parameters

  • $post - WP post object - Searched fields' post.

Return value

The returned value is an array containing all Aeria fields for the post, indexed by metabox.

Example

function getFields ()
{
	$metas = get_aeria_fields(get_post());
	return $metas;
}

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