delete_all_application_passwords($data['userid'])); // // $accessToken = new AccessToken(); // // $current_user = wp_get_current_user(); // // $data['user_id'] = $current_user->data->ID; // $data['name'] = $current_user->data->user_login; // // // $passwordData = $accessToken->rest_add_application_password($data); // $accessToken->set_user_application_passwords($data['userid'],$passwordData); // $array = apply_filters( 'determine_current_user', $array ); // $data['name'] = $current_user->data->user_login; //$accessToken->authenticate( $current_user, $_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'] ); // print_r('test test test test'); // $data['userid'] = $current_user->data->ID; // $data['name'] = $current_user->data->user_login; // // $passwordData = $accessToken->rest_add_application_password($data); // // $accessToken->set_user_application_passwords($data['userid'],$passwordData); // update_option( 'aranalyzer_consumerkey', '' ); // update_option( 'aranalyzer_RSS', '' ); // update_option( 'aranalyzer_state_keys', '' ); // update_option( 'aranalyzer_secretkey', '' ); // update_option( 'aranalyzer_state_keys', '' ); // delete_option( 'aranalyzer_tracking' ); // delete_option( 'aranalyzer_view' ); // delete_option( 'aranalyzer_RSS' ); // delete_option( 'aranalyzer_consumerkey' ); // delete_option( 'aranalyzer_secretkey' ); // delete_option( 'aranalyzer_state_keys' ); // delete_option( 'arActivatedDate' ); //Normal page display $consumerkey = get_option('aranalyzer_consumerkey'); $secretkey = get_option('aranalyzer_secretkey'); $aranalyzer_state_keys = get_option('aranalyzer_state_keys'); // echo get_option('aranalyzer_consumerkey'); // echo get_option('aranalyzer_create'); if((empty($consumerkey) || empty($secretkey)) || ($aranalyzer_state_keys === 'FALSE' || empty($aranalyzer_state_keys))){ $accessToken = new AccessToken(); $current_user = wp_get_current_user(); $data['user_id'] = $current_user->data->ID; $data['name'] = $current_user->data->user_login; $passwordData = $accessToken->rest_add_application_password($data); $accessToken->set_user_application_passwords($data['user_id'],$passwordData); }else{ $returnData = checkWorPressConnection(); if($returnData->status != 10){ $accessToken = new AccessToken(); $current_user = wp_get_current_user(); $data['user_id'] = $current_user->data->ID; $data['name'] = $current_user->data->user_login; $passwordData = $accessToken->rest_add_application_password($data); $accessToken->set_user_application_passwords($data['user_id'],$passwordData); delete_option( 'aranalyzer_tracking' ); delete_option( 'aranalyzer_view' ); delete_option( 'aranalyzer_RSS' ); delete_option( 'aranalyzer_consumerkey' ); delete_option( 'aranalyzer_secretkey' ); delete_option( 'aranalyzer_state_keys' ); delete_option( 'arActivatedDate' ); delete_option( 'arActivatedDate' ); delete_option( 'arActivatedDate' ); delete_option( 'aranalyzer_create'); delete_option( 'aranalyzer_performance'); delete_option( 'aranalyzer_recommendation'); } } if (isset($_POST['aranalyzer_saved'])) if ($_POST['aranalyzer_saved'] == 'Y') { if (empty($consumerkey) && empty($secretkey)) { $tracking = $_POST['aranalyzer_tracking']; $arView = $_POST['aranalyzer_view']; $arRSS = $_POST['aranalyzer_RSS']; update_option('aranalyzer_view', $arView); update_option('aranalyzer_RSS', $arRSS); update_option('aranalyzer_tracking', $tracking); $date = current_time('mysql'); update_option('aranalyzer_tracking_date', $date); ?>

" . __('Atomic AI Integration', 'aranalyzer_trdom') . ""; ?>

Blog and News content optimized in Atomic AI and seamlessly passed through to WordPress.

Upgrade your WordPress Site to use this plugin

status == 10): ?>

Optimize all your WordPress posts in the Create module and seamlessly pass your edits through to WordPress.

See how language and structure as well as your Atomic Score affects your content performance.

Disconnect Atomic AI

status != 10 || empty($secretkey)) || ($aranalyzer_state_keys === 'FALSE' || empty($aranalyzer_state_keys))): ?>
x