{"id":4467,"date":"2022-09-30T16:29:28","date_gmt":"2022-09-30T15:29:28","guid":{"rendered":"https:\/\/ibex.tech\/wordpress-sites\/?p=4467"},"modified":"2022-09-30T16:56:35","modified_gmt":"2022-09-30T15:56:35","slug":"invite-member","status":"publish","type":"post","link":"https:\/\/ibex.tech\/wordpress-sites\/plugins\/buddypress\/members\/invite-member","title":{"rendered":"Invite member"},"content":{"rendered":"\n<p>Invite a new user to sign up to the site via email<\/p>\n\n\n\n<p>Note this requires the following BuddyPress settings to be enabled:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Notifications<\/li><li>Allow registered members to invite people to join this network<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>  if ( bp_members_invitations_invite_user(array('invitee_email' =&gt; $EmailAddress, 'content' =&gt; 'This is an optioanl message to add to the email sent', 'send_invite' =&gt; True)) )\n    $ShowMessage = \"An invitation email has been sent.\";\n  else\n    $ShowMessage = \"An error coccured.\";<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Invite a new user to sign up to the site via email Note this requires the following BuddyPress settings to be enabled: Notifications Allow registered members to invite people to join this network<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[361],"tags":[],"class_list":["post-4467","post","type-post","status-publish","format-standard","hentry","category-members"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/posts\/4467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/comments?post=4467"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/posts\/4467\/revisions"}],"predecessor-version":[{"id":4469,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/posts\/4467\/revisions\/4469"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/media?parent=4467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/categories?post=4467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/tags?post=4467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}