admin_url( 'admin-ajax.php' ), 'mail' => $data['mail'], 'auto_refresh_page' => $data['auto_refresh_page'], 'nonce' => wp_create_nonce( $this->nonce_name ), ); wp_localize_script( 'wpml-user-language', 'wpml_user_language_data', $wp_mail_script_data ); wp_enqueue_script( 'wpml-user-language' ); } }