{"id":77,"date":"2026-06-04T04:45:17","date_gmt":"2026-06-04T04:45:17","guid":{"rendered":"https:\/\/hotelierdesk.com\/demos\/site1\/my-account\/"},"modified":"2026-06-04T04:45:17","modified_gmt":"2026-06-04T04:45:17","slug":"my-account","status":"publish","type":"page","link":"https:\/\/hotelierdesk.com\/demos\/site1\/my-account\/","title":{"rendered":"My Account"},"content":{"rendered":"<div class=\"soho-hotel-editor-block soho-hotel-spacer-block\" style=\"height: 80px;\"><\/div>\n\n<div class=\"hotelierdesk-editor-block\">\n\n\n<!-- BEGIN .sohohotel-my-account-login-register-cols -->\n<div class=\"sohohotel-my-account-login-register-cols\">\n\n\t<!-- Login Form -->\n\t\t<div class=\"sohohotel-my-account-col\">\n\t\t\t<form method=\"post\" class=\"sohohotel-my-account-login-form shb-my-account-login-form\">\n\n\t\t\t<div class=\"shb-checkout-coupon-wrapper shb-my-account-message\" style=\"display:none;\">\n\t\t\t\t<p><i class=\"fas fa-times\"><\/i> <span class=\"shb-my-account-message-text\"><\/span><\/p>\n\t\t\t<\/div>\n\n\t\t\t<label for=\"shb_login_username\">Username or email address&nbsp;<span class=\"required\" aria-hidden=\"true\">*<\/span><\/label>\n\t\t\t<input type=\"text\" name=\"username\" id=\"shb_login_username\" value=\"\" \/>\n\n\t\t\t<label for=\"shb_login_password\">Password&nbsp;<span class=\"required\" aria-hidden=\"true\">*<\/span><\/label>\n\t\t\t<input type=\"password\" name=\"password\" id=\"shb_login_password\" \/>\n\n\t\t\t<label class=\"sohohotel-my-account-remember\">\n\t\t\t\t<input name=\"rememberme\" type=\"checkbox\" id=\"rememberme\" value=\"forever\" \/> <span>Remember me<\/span>\n\t\t\t<\/label>\n\n\t\t\t<input type=\"submit\" value=\"Log In\">\n\n\t\t\t<p><a href=\"#\" class=\"shb-my-account-show-lost-password\">Lost your password?<\/a><\/p>\n\n\t\t<\/form>\n\n\t\t<!-- Lost Password Form (hidden by default) -->\n\t\t<form method=\"post\" class=\"sohohotel-my-account-login-form shb-my-account-lost-password-form\" style=\"display:none;\">\n\n\t\t\t<div class=\"shb-checkout-coupon-wrapper shb-my-account-message\" style=\"display:none;\">\n\t\t\t\t<p><i class=\"fas fa-times\"><\/i> <span class=\"shb-my-account-message-text\"><\/span><\/p>\n\t\t\t<\/div>\n\n\t\t\t<label for=\"shb_lost_password_login\">Username or email address&nbsp;<span class=\"required\" aria-hidden=\"true\">*<\/span><\/label>\n\t\t\t<input type=\"text\" name=\"user_login\" id=\"shb_lost_password_login\" value=\"\" \/>\n\n\t\t\t<input type=\"submit\" value=\"Reset Password\">\n\n\t\t\t<p><a href=\"#\" class=\"shb-my-account-show-login\">Back to login<\/a><\/p>\n\n\t\t<\/form>\n\t\t<\/div>\n\n\t<!-- Register Form -->\n\t<div class=\"sohohotel-my-account-col\">\n\t\t<form method=\"post\" class=\"sohohotel-my-account-login-form shb-my-account-register-form\">\n\n\t\t\t<div class=\"shb-checkout-coupon-wrapper shb-my-account-message\" style=\"display:none;\">\n\t\t\t\t<p><i class=\"fas fa-times\"><\/i> <span class=\"shb-my-account-message-text\"><\/span><\/p>\n\t\t\t<\/div>\n\n\t\t\t<label for=\"shb_register_email\">Email address&nbsp;<span class=\"required\" aria-hidden=\"true\">*<\/span><\/label>\n\t\t\t<input type=\"text\" name=\"email\" id=\"shb_register_email\" value=\"\" \/>\n\n\t\t\t<p>A link to set a new password will be sent to your email address.<\/p>\n\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\tYour personal data will be used to support your experience throughout this website, to manage access to your account, and for other purposes described in our <a href=\"https:\/\/hotelierdesk.com\/demos\/site1\/?page_id=3\" target=\"_blank\">privacy policy<\/a>.\t\t\t\t<\/p>\n\t\t\t\n\t\t\t<input type=\"submit\" value=\"Register\">\n\n\t\t<\/form>\n\t<\/div>\n\n<\/div>\n<!-- END .sohohotel-my-account-login-register-cols -->\n\n<script>\n(function($) {\n\n\tvar ajaxUrl = 'https:\/\/hotelierdesk.com\/demos\/site1\/wp-admin\/admin-ajax.php';\n\tvar nonce   = 'fedf845b6b';\n\n\tfunction showMessage( $form, message, isSuccess ) {\n\t\tvar $wrapper = $form.find('.shb-my-account-message');\n\t\tvar $icon    = $wrapper.find('i');\n\t\tvar $text    = $wrapper.find('.shb-my-account-message-text');\n\n\t\t$text.text( message );\n\n\t\tif ( isSuccess ) {\n\t\t\t$icon.removeClass('fa-times').addClass('fa-check');\n\t\t\t$wrapper.removeClass('shb-my-account-error').addClass('shb-my-account-success');\n\t\t} else {\n\t\t\t$icon.removeClass('fa-check').addClass('fa-times');\n\t\t\t$wrapper.removeClass('shb-my-account-success').addClass('shb-my-account-error');\n\t\t}\n\n\t\t$wrapper.show();\n\t}\n\n\t\/\/ Login form.\n\t$('.shb-my-account-login-form').on('submit', function(e) {\n\t\te.preventDefault();\n\t\tvar $form = $(this);\n\t\tvar $submit = $form.find('input[type=\"submit\"]');\n\n\t\t$submit.prop('disabled', true);\n\n\t\t$.ajax({\n\t\t\turl: ajaxUrl,\n\t\t\ttype: 'POST',\n\t\t\tdata: {\n\t\t\t\taction: 'hotelierdesk_login',\n\t\t\t\tnonce: nonce,\n\t\t\t\tusername: $form.find('input[name=\"username\"]').val(),\n\t\t\t\tpassword: $form.find('input[name=\"password\"]').val(),\n\t\t\t\trememberme: $form.find('input[name=\"rememberme\"]:checked').val() || ''\n\t\t\t},\n\t\t\tsuccess: function(response) {\n\t\t\t\tif ( response.success ) {\n\t\t\t\t\twindow.location.reload();\n\t\t\t\t} else {\n\t\t\t\t\tshowMessage( $form, response.data.message, false );\n\t\t\t\t\t$submit.prop('disabled', false);\n\t\t\t\t}\n\t\t\t},\n\t\t\terror: function() {\n\t\t\t\tshowMessage( $form, 'An error occurred. Please try again.', false );\n\t\t\t\t$submit.prop('disabled', false);\n\t\t\t}\n\t\t});\n\t});\n\n\t\/\/ Register form.\n\t$('.shb-my-account-register-form').on('submit', function(e) {\n\t\te.preventDefault();\n\t\tvar $form = $(this);\n\t\tvar $submit = $form.find('input[type=\"submit\"]');\n\n\t\t$submit.prop('disabled', true);\n\n\t\t$.ajax({\n\t\t\turl: ajaxUrl,\n\t\t\ttype: 'POST',\n\t\t\tdata: {\n\t\t\t\taction: 'hotelierdesk_register',\n\t\t\t\tnonce: nonce,\n\t\t\t\temail: $form.find('input[name=\"email\"]').val()\n\t\t\t},\n\t\t\tsuccess: function(response) {\n\t\t\t\tshowMessage( $form, response.data.message, response.success );\n\t\t\t\t$submit.prop('disabled', false);\n\t\t\t},\n\t\t\terror: function() {\n\t\t\t\tshowMessage( $form, 'An error occurred. Please try again.', false );\n\t\t\t\t$submit.prop('disabled', false);\n\t\t\t}\n\t\t});\n\t});\n\n\t\/\/ Lost password form.\n\t$('.shb-my-account-lost-password-form').on('submit', function(e) {\n\t\te.preventDefault();\n\t\tvar $form = $(this);\n\t\tvar $submit = $form.find('input[type=\"submit\"]');\n\n\t\t$submit.prop('disabled', true);\n\n\t\t$.ajax({\n\t\t\turl: ajaxUrl,\n\t\t\ttype: 'POST',\n\t\t\tdata: {\n\t\t\t\taction: 'hotelierdesk_lost_password',\n\t\t\t\tnonce: nonce,\n\t\t\t\tuser_login: $form.find('input[name=\"user_login\"]').val()\n\t\t\t},\n\t\t\tsuccess: function(response) {\n\t\t\t\tshowMessage( $form, response.data.message, response.success );\n\t\t\t\t$submit.prop('disabled', false);\n\t\t\t},\n\t\t\terror: function() {\n\t\t\t\tshowMessage( $form, 'An error occurred. Please try again.', false );\n\t\t\t\t$submit.prop('disabled', false);\n\t\t\t}\n\t\t});\n\t});\n\n\t\/\/ Toggle lost password \/ login forms.\n\t$('.shb-my-account-show-lost-password').on('click', function(e) {\n\t\te.preventDefault();\n\t\t$('.shb-my-account-login-form').hide();\n\t\t$('.shb-my-account-lost-password-form').show();\n\t});\n\n\t$('.shb-my-account-show-login').on('click', function(e) {\n\t\te.preventDefault();\n\t\t$('.shb-my-account-lost-password-form').hide();\n\t\t$('.shb-my-account-login-form').show();\n\t});\n\n})(jQuery);\n<\/script>\n\n<\/div>\n\n<div class=\"soho-hotel-editor-block soho-hotel-spacer-block\" style=\"height: 50px;\"><\/div>","protected":false},"excerpt":{"rendered":"<a href=\"https:\/\/hotelierdesk.com\/demos\/site1\/my-account\/\" class=\"sohohotel-more-link\">Read More<\/a>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-77","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/hotelierdesk.com\/demos\/site1\/wp-json\/wp\/v2\/pages\/77","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hotelierdesk.com\/demos\/site1\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hotelierdesk.com\/demos\/site1\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hotelierdesk.com\/demos\/site1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hotelierdesk.com\/demos\/site1\/wp-json\/wp\/v2\/comments?post=77"}],"version-history":[{"count":0,"href":"https:\/\/hotelierdesk.com\/demos\/site1\/wp-json\/wp\/v2\/pages\/77\/revisions"}],"wp:attachment":[{"href":"https:\/\/hotelierdesk.com\/demos\/site1\/wp-json\/wp\/v2\/media?parent=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}