$v) { $_POST[$k] = stripslashes($v); } unset($_POST['Submit']); $sanitize = array( 'newgoogle_update_options', 'google_client_id', 'google_client_secret', 'google_api_key', 'google_redirect', 'google_redirect_reg', 'google_load_style' ); foreach ($sanitize AS $k) { $_POST[$k] = sanitize_text_field($_POST[$k]); } $_POST['google_user_prefix'] = preg_replace("/[^A-Za-z0-9\-_ ]/", '', $_POST['google_user_prefix']); update_option("nextend_google_connect", maybe_serialize($_POST)); $newgoogle_status = 'update_success'; } } } } static function NextendGoogle_Options_Page() { $domain = get_option('siteurl'); $domain = str_replace(array( 'http://', 'https://' ), array( '', '' ), $domain); $domain = str_replace('www.', '', $domain); $a = explode("/", $domain); $domain = $a[0]; ?>

Nextend Google Connect Settings

"; else if ($newgoogle_status == 'update_failed') $message = __('Error while saving options', 'nextend-google-connect') . "
"; else $message = ''; if ($message != "") { ?>

  • Add your domain to Google system!
  • ', 'nextend-google-connect'); ?> The bottom of the page will contain a link to your domain. Click on it and follow Google\'s veryfication steps.', 'nextend-google-connect'); ?> After you are done, We have to create and API access.', 'nextend-google-connect'); ?> Create a new API access with your product name.
    ', 'nextend-google-connect'); ?> Search for the Google+ API row and enable the service', 'nextend-google-connect'); ?> Then click on the API access panel and create and OAuth 2 clien ID!
    ', 'nextend-google-connect'); ?> Product name can be anything then click on next.', 'nextend-google-connect'); ?> Click on the more options link and copy and paste ' . new_google_login_url() . ' to the textarea.
    ', 'nextend-google-connect'); ?> Now you should use the values in the fields below.
    ', 'nextend-google-connect'); ?> Save changes!', 'nextend-google-connect'); ?>

    /wp-admin/options-general.php?page=nextend-google-connect">
    checked > Yes      checked > No
    CONNECT WITH
    '; ?>
    LINK ACCOUNT TO
    '; ?>
    UNLINK ACCOUNT
    '; ?>