{"id":157,"date":"2021-08-15T09:10:08","date_gmt":"2021-08-15T09:10:08","guid":{"rendered":"https:\/\/demo.daext.com\/restricted-blocks\/?p=13"},"modified":"2023-10-11T14:03:07","modified_gmt":"2023-10-11T14:03:07","slug":"block-restricted-with-password","status":"publish","type":"post","link":"https:\/\/demo.daext.com\/restricted-blocks\/block-restricted-with-password\/","title":{"rendered":"Block restricted with password"},"content":{"rendered":"\n<p>With a restriction of type &#8220;Password&#8221; the restricted content is displayed only after a successful password submission.<\/p>\n\n\n\n<h4 class=\"block-with-restriction wp-block-heading\">Example<\/h4>\n\n\n\n<p>The block below can only be accessed by submitting the password &#8220;123456&#8221;.<\/p>\n\n\n<div class=\"daextreblp-restricted-block-container\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"daextreblp-restricted-block-title\">Protected Content<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"daextreblp-restricted-block-description\">This content is password protected.<\/div>\n\t\t\t\n\t\t\t\n\t\t\t<div class=\"daextreblp-form daextreblp-password-form\"\n\t\t\t\tdata-restriction-id=\"1\">\n\t\t\t\t<div class=\"daextreblp-form-row daextreblp-form-row-password\">\n\t\t\t\t\t<div class=\"daextreblp-password-label\">Password<\/div>\n\t\t\t\t\t<input type=\"password\" class=\"daextreblp-password\">\n\t\t\t\t\t<div class=\"daextreblp-password-toggle\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t<svg class=\"daextreblp-eye-visible\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\">\n\t\t\t\t\t\t<path class=\"daextreblp-eye-visible-elements\" d=\"M8,11c-1.7,0-3-1.3-3-3s1.3-3,3-3s3,1.3,3,3S9.7,11,8,11z M8,6C6.9,6,6,6.9,6,8c0,1.1,0.9,2,2,2\n\t\t\t\t\t\t\tc1.1,0,2-0.9,2-2C10,6.9,9.1,6,8,6z\" \/>\n\t\t\t\t\t\t<path class=\"daextreblp-eye-visible-elements\" d=\"M8,13c-3.2,0-6.1-1.9-7.3-4.8L0.6,8l0.1-0.2C1.9,4.9,4.8,3,8,3s6.1,1.9,7.3,4.8L15.4,8l-0.1,0.2\n\t\t\t\t\t\t\tC14.1,11.1,11.2,13,8,13z M1.7,8c1.2,2.4,3.6,4,6.3,4c2.7,0,5.2-1.6,6.3-4C13.2,5.6,10.7,4,8,4S2.8,5.6,1.7,8z\" \/>\n\t\t\t\t\t\t<\/svg>\n\t\t\t\t\t\t<svg class=\"daextreblp-eye-invisible\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\">\n\t\t\t\t\t\t<path class=\"daextreblp-eye-invisible-elements\" d=\"M6,7.9c0.1-1,0.9-1.8,1.9-1.9l0.9-0.9C8.5,5,8.3,5,8,5C6.3,5,5,6.3,5,8c0,0.3,0,0.5,0.1,0.8L6,7.9z\" \/>\n\t\t\t\t\t\t<path class=\"daextreblp-eye-invisible-elements\" d=\"M10,8.1c-0.1,1-0.9,1.8-1.9,1.9l-0.9,0.9C7.5,11,7.7,11,8,11c1.7,0,3-1.3,3-3c0-0.3,0-0.5-0.1-0.8L10,8.1z\" \/>\n\t\t\t\t\t\t<path class=\"daextreblp-eye-invisible-elements\" d=\"M2.8,11.1l0.7-0.7C2.8,9.7,2.1,8.9,1.7,8C2.8,5.6,5.3,4,8,4c0.6,0,1.1,0.1,1.7,0.2l0.8-0.8C9.7,3.1,8.9,3,8,3\n\t\t\t\t\t\t\tC4.8,3,1.9,4.9,0.7,7.8L0.6,8l0.1,0.2C1.2,9.3,1.9,10.3,2.8,11.1z\" \/>\n\t\t\t\t\t\t<path class=\"daextreblp-eye-invisible-elements\" d=\"M13.2,4.9l-0.7,0.7c0.8,0.6,1.4,1.4,1.8,2.4c-1.2,2.4-3.6,4-6.3,4c-0.6,0-1.1-0.1-1.7-0.2l-0.8,0.8\n\t\t\t\t\t\t\tC6.3,12.9,7.1,13,8,13c3.2,0,6.1-1.9,7.3-4.8L15.4,8l-0.1-0.2C14.8,6.7,14.1,5.7,13.2,4.9z\" \/>\n\t\t\t\t\t\t<rect x=\"-2.6\" y=\"7.5\" transform=\"matrix(0.7071 -0.7071 0.7071 0.7071 -3.3137 8)\" class=\"daextreblp-eye-invisible-elements\" width=\"21.2\" height=\"1\" \/>\n\t\t\t\t\t\t<\/svg>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"daextreblp-form-row\">\n\t\t\t\t\t<button class=\"daextreblp-password-form-submit\">Submit<\/button>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"daextreblp-form-row\">\n\t\t\t\t\t<div class=\"daextreblp-password-invalid\">The password you entered is not valid.<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\n\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>With a restriction of type &#8220;Password&#8221; the restricted content is displayed only after a successful password submission. Example The block below can only be accessed by submitting the password &#8220;123456&#8221;. Protected Content This content is password protected. Password Submit The password you entered is not valid.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-157","post","type-post","status-publish","format-standard","hentry","category-demo"],"_links":{"self":[{"href":"https:\/\/demo.daext.com\/restricted-blocks\/wp-json\/wp\/v2\/posts\/157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.daext.com\/restricted-blocks\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demo.daext.com\/restricted-blocks\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demo.daext.com\/restricted-blocks\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.daext.com\/restricted-blocks\/wp-json\/wp\/v2\/comments?post=157"}],"version-history":[{"count":1,"href":"https:\/\/demo.daext.com\/restricted-blocks\/wp-json\/wp\/v2\/posts\/157\/revisions"}],"predecessor-version":[{"id":163,"href":"https:\/\/demo.daext.com\/restricted-blocks\/wp-json\/wp\/v2\/posts\/157\/revisions\/163"}],"wp:attachment":[{"href":"https:\/\/demo.daext.com\/restricted-blocks\/wp-json\/wp\/v2\/media?parent=157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demo.daext.com\/restricted-blocks\/wp-json\/wp\/v2\/categories?post=157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demo.daext.com\/restricted-blocks\/wp-json\/wp\/v2\/tags?post=157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}