static function select_fallback_page()
 {
     $post_fallback_page = get_option('wpaa_fallback_page');
     UndisclosedEditPost::fallback_page_dropdown($post_fallback_page, 'wpaa_fallback_page');
 }
예제 #2
0
/**
 * Activation hook
 */
function accessareas_activate()
{
    UndisclosedInstall::activate();
}
/**
 * Deactivation hook
 */
function accessareas_deactivate()
{
    UndisclosedInstall::deactivate();
}
/**
 * Uninstall hook
 */
function accessareas_uninstall()
{
    UndisclosedInstall::uninstall();
}
// access area data model
if (is_admin()) {
    UndisclosedCaps::init();
    UndisclosedUsers::init();
    UndisclosedEditPost::init();
    UndisclosedSettings::init();
}
register_activation_hook(__FILE__, 'accessareas_activate');
register_deactivation_hook(__FILE__, 'accessareas_deactivate');
register_uninstall_hook(__FILE__, 'accessareas_uninstall');