Skip to content

get_aeria_options

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

get_aeria_options

get_aeria_options($optionPage)

Description

If rules are made to be broken, options are made to be checked! Aeria lets you check the options you saved in custom settings pages without fiddling with WordPress' settings. You just have to call get_aeria_options specifying where the setting is saved.

Parameters

  • $optionPage - String - The options page ID.

Return value

The returned value is an array containing all the option page's fields' values.

Example

function notifyAdmin ()
{
	$adminEmail = get_aeria_options("admin-info")['email'];
  mail($adminEmail, "Aeria is great!", "Go tell your fellow humans.");
}

add_action('aeria_booted', 'notifyAdmin');