{"id":176,"date":"2026-04-06T14:01:29","date_gmt":"2026-04-06T13:01:29","guid":{"rendered":"https:\/\/www.sphpn.org\/cm\/index.php\/membership-levels\/"},"modified":"2026-06-02T09:59:58","modified_gmt":"2026-06-02T08:59:58","slug":"membership-levels","status":"publish","type":"page","link":"http:\/\/www.sphpn.org\/index.php\/membership-levels\/","title":{"rendered":"Membership Levels"},"content":{"rendered":"<p>[pmpro_levels]<\/p>\n\n\n<div style=\"margin: 20px 0; padding: 20px; background-color: #f9f9f9; border-left: 4px solid #7B1FA2; font-family: sans-serif; border-radius: 4px; max-width: 500px;\">\n    <p style=\"margin: 0 0 12px 0; font-weight: bold; font-size: 16px; color: #333;\">\n        Have an Affiliate Partnership or Discount Code?\n    <\/p>\n    <div style=\"display: flex; gap: 10px;\">\n        <input type=\"text\" id=\"custom-affiliate-input\" placeholder=\"Enter code here...\" style=\"flex: 1; padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px;\">\n        <button id=\"custom-affiliate-submit\" style=\"background-color: #7B1FA2; color: white; border: none; padding: 8px 16px; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 14px;\">\n            Verify &#038; Register\n        <\/button>\n    <\/div>\n    <p id=\"custom-affiliate-error\" style=\"color: #dc3545; margin: 8px 0 0 0; font-size: 13px; display: none; font-weight: bold;\"><\/p>\n    <p style=\"margin: 0 0 12px 0; font-weight: bold; font-size: 16px; color: #333;\">\n     Please ensure enter the code correctly\n    <\/p>\n<\/div>\n\n<script type=\"text\/javascript\">\ndocument.addEventListener(\"DOMContentLoaded\", function() {\n    var submitBtn = document.getElementById('custom-affiliate-submit');\n    var inputField = document.getElementById('custom-affiliate-input');\n    var errorMsg = document.getElementById('custom-affiliate-error');\n\n    if (submitBtn && inputField) {\n        submitBtn.addEventListener('click', function() {\n            var userCode = inputField.value.trim();\n            \n            if (userCode === \"\") {\n                errorMsg.innerText = \"Please enter a registration code to proceed.\";\n                errorMsg.style.display = \"block\";\n                return;\n            }\n            \n            errorMsg.style.display = \"none\";\n            var sanitizedCode = encodeURIComponent(userCode);\n            window.location.href = \"https:\/\/www.sphpn.org\/index.php\/membership-checkout\/?level=6&discount_code=\" + sanitizedCode;\n        });\n    }\n});\n<\/script>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[pmpro_levels] Have an Affiliate Partnership or Discount Code? Verify &#038; Register Please ensure enter the code correctly<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"pmpro_default_level":"","footnotes":""},"class_list":["post-176","page","type-page","status-publish","hentry","pmpro-has-access"],"_links":{"self":[{"href":"http:\/\/www.sphpn.org\/index.php\/wp-json\/wp\/v2\/pages\/176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.sphpn.org\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.sphpn.org\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.sphpn.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sphpn.org\/index.php\/wp-json\/wp\/v2\/comments?post=176"}],"version-history":[{"count":9,"href":"http:\/\/www.sphpn.org\/index.php\/wp-json\/wp\/v2\/pages\/176\/revisions"}],"predecessor-version":[{"id":210,"href":"http:\/\/www.sphpn.org\/index.php\/wp-json\/wp\/v2\/pages\/176\/revisions\/210"}],"wp:attachment":[{"href":"http:\/\/www.sphpn.org\/index.php\/wp-json\/wp\/v2\/media?parent=176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}