-
Notifications
You must be signed in to change notification settings - Fork 5
get_aeria_options
Alberto Parziale edited this page Aug 30, 2019
·
1 revision
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.
-
$optionPage
- String - The options page ID.
The returned value is an array containing all the option page's fields' values.
function notifyAdmin ()
{
$adminEmail = get_aeria_options("admin-info")['email'];
mail($adminEmail, "Aeria is great!", "Go tell your fellow humans.");
}
add_action('aeria_booted', 'notifyAdmin');