Exemplo n.º 1
0
function userpro_update_214()
{
    if (!userpro_update_installed('214') && get_option('userpro_fields') && get_option('userpro_fields_builtin')) {
        $fields = get_option('userpro_fields');
        $builtin = get_option('userpro_fields_builtin');
        $new_fields['securityqa'] = array('_builtin' => 1, 'type' => 'securityqa', 'label' => 'Are You A Human?');
        $all_fields = $new_fields + $fields;
        $all_builtin = $new_fields + $builtin;
        update_option('userpro_fields', $all_fields);
        update_option('userpro_fields_builtin', $all_builtin);
        update_option("userpro_update_214", 1);
    }
}
Exemplo n.º 2
0
function userpro_update_1046()
{
    if (!userpro_update_installed('1046') && get_option('userpro_fields')) {
        $fields = get_option('userpro_fields');
        $builtin = get_option('userpro_fields_builtin');
        $new_fields['envato_purchase_code'] = array('_builtin' => 1, 'type' => 'text', 'label' => 'Envato Purchase Code', 'help' => 'Please enter your envato purchase code.', 'hidden' => 1);
        $all_fields = $new_fields + $fields;
        $all_builtin = $new_fields + $builtin;
        update_option('userpro_fields', $all_fields);
        update_option('userpro_fields_builtin', $all_builtin);
        update_option("userpro_update_1046", 1);
    }
}
Exemplo n.º 3
0
function userpro_update_1050()
{
    if (!userpro_update_installed('1050') && get_option('userpro_fields')) {
        $fields = get_option('userpro_fields');
        $builtin = get_option('userpro_fields_builtin');
        $new_fields['antispam'] = array('_builtin' => 1, 'type' => 'antispam', 'label' => 'Antispam Question');
        $all_fields = $new_fields + $fields;
        $all_builtin = $new_fields + $builtin;
        update_option('userpro_fields', $all_fields);
        update_option('userpro_fields_builtin', $all_builtin);
        update_option("userpro_update_1050", 1);
    }
}
Exemplo n.º 4
0
function userpro_update_1048()
{
    if (!userpro_update_installed('1048') && get_option('userpro_fields') && get_option('userpro_fields_builtin')) {
        $fields = get_option('userpro_fields');
        $builtin = get_option('userpro_fields_builtin');
        $new_fields['mailchimp_subscribe'] = array('_builtin' => 1, 'type' => 'mailchimp', 'label' => 'Subscribe to newsletter', 'list_id' => '', 'list_text' => 'Get periodic e-mail updates and newsletters');
        $all_fields = $new_fields + $fields;
        $all_builtin = $new_fields + $builtin;
        update_option('userpro_fields', $all_fields);
        update_option('userpro_fields_builtin', $all_builtin);
        update_option("userpro_update_1048", 1);
    }
}
Exemplo n.º 5
0
function userpro_update_1006()
{
    if (!userpro_update_installed('1006') && get_option('userpro_fields') && get_option('userpro_fields_builtin')) {
        $fields = get_option('userpro_fields');
        $builtin = get_option('userpro_fields_builtin');
        $new_fields['phone_number'] = array('_builtin' => 1, 'type' => 'text', 'label' => 'Phone Number');
        $all_fields = $new_fields + $fields;
        $all_builtin = $new_fields + $builtin;
        update_option('userpro_fields', $all_fields);
        update_option('userpro_fields_builtin', $all_builtin);
        update_option("userpro_update_1006", 1);
    }
}
Exemplo n.º 6
0
function userpro_update_1051()
{
    if (!userpro_update_installed('1051') && get_option('userpro_fields') && get_option('userpro_fields_builtin')) {
        $fields = get_option('userpro_fields');
        $builtin = get_option('userpro_fields_builtin');
        $new_fields['followers_email'] = array('_builtin' => 1, 'type' => 'followers', 'label' => 'followers email alert', 'follower_text' => 'Get email notifications when someone follows you');
        $all_fields = $new_fields + $fields;
        $all_builtin = $new_fields + $builtin;
        update_option('userpro_fields', $all_fields);
        update_option('userpro_fields_builtin', $all_builtin);
        update_option("userpro_update_1051", 1);
    }
}
Exemplo n.º 7
0
function userpro_update_1036()
{
    if (!userpro_update_installed('1036') && get_option('userpro_fields')) {
        $fields = get_option('userpro_fields');
        $builtin = get_option('userpro_fields_builtin');
        $new_fields['custom_profile_bg'] = array('_builtin' => 1, 'type' => 'picture', 'label' => 'Profile Background', 'help' => 'Add a custom profile background to your profile');
        $new_fields['custom_profile_color'] = array('_builtin' => 1, 'type' => 'select', 'label' => 'Heading Color', 'options' => array('' => 'Choose Skin', 'light' => 'Light', 'dark' => 'Dark'), 'default' => 'Dark', 'help' => 'You can choose the style that matches your custom background (if you set one)');
        $all_fields = $new_fields + $fields;
        $all_builtin = $new_fields + $builtin;
        update_option('userpro_fields', $all_fields);
        update_option('userpro_fields_builtin', $all_builtin);
        update_option("userpro_update_1036", 1);
    }
}
Exemplo n.º 8
0
function userpro_update_1052()
{
    if (!userpro_update_installed('1052') && get_option('userpro_fields') && get_option('userpro_fields_builtin')) {
        global $userpro;
        $fields = get_option('userpro_fields');
        $builtin = get_option('userpro_fields_builtin');
        $new_fields['linkedin'] = array('_builtin' => 1, 'type' => 'text', 'label' => 'Linkedin Page');
        $all_fields = $new_fields + $fields;
        $all_builtin = $new_fields + $builtin;
        update_option('userpro_fields', $all_fields);
        update_option('userpro_fields_builtin', $all_builtin);
        update_option("userpro_update_1052", 1);
        $userpro->update_field_icons();
    }
}
Exemplo n.º 9
0
function userpro_update_1024()
{
    if (!userpro_update_installed('1024') && get_option('userpro_pages')) {
        $pages = get_option('userpro_pages');
        if (!isset($pages['logout_page'])) {
            $slug_logout = userpro_get_option('slug_logout');
            $logout_page = array('post_title' => __('Logout', 'userpro'), 'post_content' => '', 'post_name' => $slug_logout, 'comment_status' => 'closed', 'post_type' => 'page', 'post_status' => 'publish', 'post_author' => 1);
            $logout_page = wp_insert_post($logout_page);
            $pages['logout_page'] = $logout_page;
            $post = get_post($logout_page, ARRAY_A);
            userpro_set_option('slug_logout', $post['post_name']);
            update_option('userpro_pages', $pages);
            update_option("userpro_update_1024", 1);
        }
    }
}