{"id":1375,"date":"2018-09-07T19:54:25","date_gmt":"2018-09-07T19:54:25","guid":{"rendered":"https:\/\/buddydev.com\/docs\/?p=1375"},"modified":"2018-09-07T19:54:25","modified_gmt":"2018-09-07T19:54:25","slug":"javascript-api","status":"publish","type":"post","link":"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/javascript-api\/","title":{"rendered":"Javascript API"},"content":{"rendered":"<p>The BuddyPress Ajax registration plugin provides JavaScript API to let developers control the modal boxes.<\/p>\n<p>The most useful ones are listed below.<\/p>\n<p><strong>Open Registration Modal box:-<\/strong><\/p>\n<pre class=\"lang:js decode:true\">BPAjaxr.showPanel('registration');<\/pre>\n<p><strong>Open Login Modal Box:-<\/strong><\/p>\n<pre class=\"lang:js decode:true \">BPAjaxr.showPanel('login');<\/pre>\n<p><strong>Open Forget Password Modal Box:-<\/strong><\/p>\n<pre class=\"lang:php decode:true \">BPAjaxr.showPanel('forget-password');<\/pre>\n<p><strong>Close currently opened modal box:-<\/strong><\/p>\n<pre class=\"lang:php decode:true \">BPAjaxr.close();<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The BuddyPress Ajax registration plugin provides JavaScript API to let developers control the modal boxes. The most useful ones are listed below. Open Registration Modal box:- BPAjaxr.showPanel(&#8216;registration&#8217;); Open Login Modal Box:- BPAjaxr.showPanel(&#8216;login&#8217;); Open Forget Password Modal Box:- BPAjaxr.showPanel(&#8216;forget-password&#8217;); Close currently opened modal box:- BPAjaxr.close(); &nbsp;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5372],"tags":[],"class_list":["clearfix","post-1375","post","type-post","status-publish","format-standard","hentry","category-buddypress-ajax-registration"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Javascript API &#8226; BuddyDev Help Center<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/javascript-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Javascript API &#8226; BuddyDev Help Center\" \/>\n<meta property=\"og:description\" content=\"The BuddyPress Ajax registration plugin provides JavaScript API to let developers control the modal boxes. The most useful ones are listed below. Open Registration Modal box:- BPAjaxr.showPanel(&#039;registration&#039;); Open Login Modal Box:- BPAjaxr.showPanel(&#039;login&#039;); Open Forget Password Modal Box:- BPAjaxr.showPanel(&#039;forget-password&#039;); Close currently opened modal box:- BPAjaxr.close(); &nbsp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/javascript-api\/\" \/>\n<meta property=\"og:site_name\" content=\"BuddyDev Help Center\" \/>\n<meta property=\"article:published_time\" content=\"2018-09-07T19:54:25+00:00\" \/>\n<meta name=\"author\" content=\"Brajesh Singh\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brajesh Singh\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/javascript-api\/\",\"url\":\"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/javascript-api\/\",\"name\":\"Javascript API &#8226; BuddyDev Help Center\",\"isPartOf\":{\"@id\":\"https:\/\/buddydev.com\/docs\/#website\"},\"datePublished\":\"2018-09-07T19:54:25+00:00\",\"author\":{\"@id\":\"https:\/\/buddydev.com\/docs\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb\"},\"breadcrumb\":{\"@id\":\"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/javascript-api\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/javascript-api\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/javascript-api\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/buddydev.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Javascript API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/buddydev.com\/docs\/#website\",\"url\":\"https:\/\/buddydev.com\/docs\/\",\"name\":\"BuddyDev Help Center\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/buddydev.com\/docs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/buddydev.com\/docs\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb\",\"name\":\"Brajesh Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/buddydev.com\/docs\/#\/schema\/person\/image\/\",\"url\":\"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon\",\"contentUrl\":\"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon\",\"caption\":\"Brajesh Singh\"},\"sameAs\":[\"http:\/\/buddydev.com\/members\/sbrajesh\/\",\"https:\/\/x.com\/sbrajesh\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Javascript API &#8226; BuddyDev Help Center","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/javascript-api\/","og_locale":"en_US","og_type":"article","og_title":"Javascript API &#8226; BuddyDev Help Center","og_description":"The BuddyPress Ajax registration plugin provides JavaScript API to let developers control the modal boxes. The most useful ones are listed below. Open Registration Modal box:- BPAjaxr.showPanel('registration'); Open Login Modal Box:- BPAjaxr.showPanel('login'); Open Forget Password Modal Box:- BPAjaxr.showPanel('forget-password'); Close currently opened modal box:- BPAjaxr.close(); &nbsp;","og_url":"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/javascript-api\/","og_site_name":"BuddyDev Help Center","article_published_time":"2018-09-07T19:54:25+00:00","author":"Brajesh Singh","twitter_misc":{"Written by":"Brajesh Singh"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/javascript-api\/","url":"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/javascript-api\/","name":"Javascript API &#8226; BuddyDev Help Center","isPartOf":{"@id":"https:\/\/buddydev.com\/docs\/#website"},"datePublished":"2018-09-07T19:54:25+00:00","author":{"@id":"https:\/\/buddydev.com\/docs\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb"},"breadcrumb":{"@id":"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/javascript-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/javascript-api\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/javascript-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/buddydev.com\/docs\/"},{"@type":"ListItem","position":2,"name":"Javascript API"}]},{"@type":"WebSite","@id":"https:\/\/buddydev.com\/docs\/#website","url":"https:\/\/buddydev.com\/docs\/","name":"BuddyDev Help Center","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/buddydev.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/buddydev.com\/docs\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb","name":"Brajesh Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/buddydev.com\/docs\/#\/schema\/person\/image\/","url":"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon","contentUrl":"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon","caption":"Brajesh Singh"},"sameAs":["http:\/\/buddydev.com\/members\/sbrajesh\/","https:\/\/x.com\/sbrajesh"]}]}},"_links":{"self":[{"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/posts\/1375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/comments?post=1375"}],"version-history":[{"count":1,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/posts\/1375\/revisions"}],"predecessor-version":[{"id":1376,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/posts\/1375\/revisions\/1376"}],"wp:attachment":[{"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/media?parent=1375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/categories?post=1375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/tags?post=1375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}