bp_email_get_schema

Get a list of emails for populating the email post type.

Description

(array) bp_email_get_schema(); 

Returns (array)


Usage

  1. if ( !function_exists( 'bp_email_get_schema' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_email_get_schema(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/bp-core-functions.php  
  1. function bp_email_get_schema() { 
  2. return array( 
  3. 'activity-comment' => array( 
  4. /** translators: do not remove {} brackets or translate its contents. */ 
  5. 'post_title' => __( '[{{{site.name}}}] {{poster.name}} replied to one of your updates', buddypress ),  
  6. /** translators: do not remove {} brackets or translate its contents. */ 
  7. 'post_content' => __( "{{poster.name}} replied to one of your updates:\n\n<blockquote>"{{usermessage}}"</blockquote>\n\n<a href=\"{{{thread.url}}}\">Go to the discussion</a> to reply or catch up on the conversation.", buddypress ),  
  8. /** translators: do not remove {} brackets or translate its contents. */ 
  9. 'post_excerpt' => __( "{{poster.name}} replied to one of your updates:\n\n\"{{usermessage}}\"\n\nGo to the discussion to reply or catch up on the conversation: {{{thread.url}}}", buddypress ),  
  10. ),  
  11. 'activity-comment-author' => array( 
  12. /** translators: do not remove {} brackets or translate its contents. */ 
  13. 'post_title' => __( '[{{{site.name}}}] {{poster.name}} replied to one of your comments', buddypress ),  
  14. /** translators: do not remove {} brackets or translate its contents. */ 
  15. 'post_content' => __( "{{poster.name}} replied to one of your comments:\n\n<blockquote>"{{usermessage}}"</blockquote>\n\n<a href=\"{{{thread.url}}}\">Go to the discussion</a> to reply or catch up on the conversation.", buddypress ),  
  16. /** translators: do not remove {} brackets or translate its contents. */ 
  17. 'post_excerpt' => __( "{{poster.name}} replied to one of your comments:\n\n\"{{usermessage}}\"\n\nGo to the discussion to reply or catch up on the conversation: {{{thread.url}}}", buddypress ),  
  18. ),  
  19. 'activity-at-message' => array( 
  20. /** translators: do not remove {} brackets or translate its contents. */ 
  21. 'post_title' => __( '[{{{site.name}}}] {{poster.name}} mentioned you in a status update', buddypress ),  
  22. /** translators: do not remove {} brackets or translate its contents. */ 
  23. 'post_content' => __( "{{poster.name}} mentioned you in a status update:\n\n<blockquote>"{{usermessage}}"</blockquote>\n\n<a href=\"{{{mentioned.url}}}\">Go to the discussion</a> to reply or catch up on the conversation.", buddypress ),  
  24. /** translators: do not remove {} brackets or translate its contents. */ 
  25. 'post_excerpt' => __( "{{poster.name}} mentioned you in a status update:\n\n\"{{usermessage}}\"\n\nGo to the discussion to reply or catch up on the conversation: {{{mentioned.url}}}", buddypress ),  
  26. ),  
  27. 'groups-at-message' => array( 
  28. /** translators: do not remove {} brackets or translate its contents. */ 
  29. 'post_title' => __( '[{{{site.name}}}] {{poster.name}} mentioned you in an update', buddypress ),  
  30. /** translators: do not remove {} brackets or translate its contents. */ 
  31. 'post_content' => __( "{{poster.name}} mentioned you in the group \"{{group.name}}\":\n\n<blockquote>"{{usermessage}}"</blockquote>\n\n<a href=\"{{{mentioned.url}}}\">Go to the discussion</a> to reply or catch up on the conversation.", buddypress ),  
  32. /** translators: do not remove {} brackets or translate its contents. */ 
  33. 'post_excerpt' => __( "{{poster.name}} mentioned you in the group \"{{group.name}}\":\n\n\"{{usermessage}}\"\n\nGo to the discussion to reply or catch up on the conversation: {{{mentioned.url}}}", buddypress ),  
  34. ),  
  35. 'core-user-registration' => array( 
  36. /** translators: do not remove {} brackets or translate its contents. */ 
  37. 'post_title' => __( '[{{{site.name}}}] Activate your account', buddypress ),  
  38. /** translators: do not remove {} brackets or translate its contents. */ 
  39. 'post_content' => __( "Thanks for registering!\n\nTo complete the activation of your account, go to the following link: <a href=\"{{{activate.url}}}\">{{{activate.url}}}</a>", buddypress ),  
  40. /** translators: do not remove {} brackets or translate its contents. */ 
  41. 'post_excerpt' => __( "Thanks for registering!\n\nTo complete the activation of your account, go to the following link: {{{activate.url}}}", buddypress ),  
  42. ),  
  43. 'core-user-registration-with-blog' => array( 
  44. /** translators: do not remove {} brackets or translate its contents. */ 
  45. 'post_title' => __( '[{{{site.name}}}] Activate {{{user-site.url}}}', buddypress ),  
  46. /** translators: do not remove {} brackets or translate its contents. */ 
  47. 'post_content' => __( "Thanks for registering!\n\nTo complete the activation of your account and site, go to the following link: <a href=\"{{{activate-site.url}}}\">{{{activate-site.url}}}</a>.\n\nAfter you activate, you can visit your site at <a href=\"{{{user-site.url}}}\">{{{user-site.url}}}</a>.", buddypress ),  
  48. /** translators: do not remove {} brackets or translate its contents. */ 
  49. 'post_excerpt' => __( "Thanks for registering!\n\nTo complete the activation of your account and site, go to the following link: {{{activate-site.url}}}\n\nAfter you activate, you can visit your site at {{{user-site.url}}}.", buddypress ),  
  50. ),  
  51. 'friends-request' => array( 
  52. /** translators: do not remove {} brackets or translate its contents. */ 
  53. 'post_title' => __( '[{{{site.name}}}] New friendship request from {{initiator.name}}', buddypress ),  
  54. /** translators: do not remove {} brackets or translate its contents. */ 
  55. 'post_content' => __( "<a href=\"{{{initiator.url}}}\">{{initiator.name}}</a> wants to add you as a friend.\n\nTo accept this request and manage all of your pending requests, visit: <a href=\"{{{friend-requests.url}}}\">{{{friend-requests.url}}}</a>", buddypress ),  
  56. /** translators: do not remove {} brackets or translate its contents. */ 
  57. 'post_excerpt' => __( "{{initiator.name}} wants to add you as a friend.\n\nTo accept this request and manage all of your pending requests, visit: {{{friend-requests.url}}}\n\nTo view {{initiator.name}}'s profile, visit: {{{initiator.url}}}", buddypress ),  
  58. ),  
  59. 'friends-request-accepted' => array( 
  60. /** translators: do not remove {} brackets or translate its contents. */ 
  61. 'post_title' => __( '[{{{site.name}}}] {{friend.name}} accepted your friendship request', buddypress ),  
  62. /** translators: do not remove {} brackets or translate its contents. */ 
  63. 'post_content' => __( "<a href=\"{{{friendship.url}}}\">{{friend.name}}</a> accepted your friend request.", buddypress ),  
  64. /** translators: do not remove {} brackets or translate its contents. */ 
  65. 'post_excerpt' => __( "{{friend.name}} accepted your friend request.\n\nTo learn more about them, visit their profile: {{{friendship.url}}}", buddypress ),  
  66. ),  
  67. 'groups-details-updated' => array( 
  68. /** translators: do not remove {} brackets or translate its contents. */ 
  69. 'post_title' => __( '[{{{site.name}}}] Group details updated', buddypress ),  
  70. /** translators: do not remove {} brackets or translate its contents. */ 
  71. 'post_content' => __( "Group details for the group "<a href=\"{{{group.url}}}\">{{group.name}}</a>" were updated:\n<blockquote>{{changed_text}}</blockquote>", buddypress ),  
  72. /** translators: do not remove {} brackets or translate its contents. */ 
  73. 'post_excerpt' => __( "Group details for the group \"{{group.name}}\" were updated:\n\n{{changed_text}}\n\nTo view the group, visit: {{{group.url}}}", buddypress ),  
  74. ),  
  75. 'groups-invitation' => array( 
  76. /** translators: do not remove {} brackets or translate its contents. */ 
  77. 'post_title' => __( '[{{{site.name}}}] You have an invitation to the group: "{{group.name}}"', buddypress ),  
  78. /** translators: do not remove {} brackets or translate its contents. */ 
  79. 'post_content' => __( "<a href=\"{{{inviter.url}}}\">{{inviter.name}}</a> has invited you to join the group: "{{group.name}}".\n<a href=\"{{{invites.url}}}\">Go here to accept your invitation</a> or <a href=\"{{{group.url}}}\">visit the group</a> to learn more.", buddypress ),  
  80. /** translators: do not remove {} brackets or translate its contents. */ 
  81. 'post_excerpt' => __( "{{inviter.name}} has invited you to join the group: \"{{group.name}}\".\n\nTo accept your invitation, visit: {{{invites.url}}}\n\nTo learn more about the group, visit: {{{group.url}}}.\nTo view {{inviter.name}}'s profile, visit: {{{inviter.url}}}", buddypress ),  
  82. ),  
  83. 'groups-member-promoted' => array( 
  84. /** translators: do not remove {} brackets or translate its contents. */ 
  85. 'post_title' => __( '[{{{site.name}}}] You have been promoted in the group: "{{group.name}}"', buddypress ),  
  86. /** translators: do not remove {} brackets or translate its contents. */ 
  87. 'post_content' => __( "You have been promoted to <b>{{promoted_to}}</b> in the group "<a href=\"{{{group.url}}}\">{{group.name}}</a>".", buddypress ),  
  88. /** translators: do not remove {} brackets or translate its contents. */ 
  89. 'post_excerpt' => __( "You have been promoted to {{promoted_to}} in the group: \"{{group.name}}\".\n\nTo visit the group, go to: {{{group.url}}}", buddypress ),  
  90. ),  
  91. 'groups-membership-request' => array( 
  92. /** translators: do not remove {} brackets or translate its contents. */ 
  93. 'post_title' => __( '[{{{site.name}}}] Membership request for group: {{group.name}}', buddypress ),  
  94. /** translators: do not remove {} brackets or translate its contents. */ 
  95. 'post_content' => __( "<a href=\"{{{profile.url}}}\">{{requesting-user.name}}</a> wants to join the group "{{group.name}}". As you are an administrator of this group, you must either accept or reject the membership request.\n\n<a href=\"{{{group-requests.url}}}\">Go here to manage this</a> and all other pending requests.", buddypress ),  
  96. /** translators: do not remove {} brackets or translate its contents. */ 
  97. 'post_excerpt' => __( "{{requesting-user.name}} wants to join the group \"{{group.name}}\". As you are the administrator of this group, you must either accept or reject the membership request.\n\nTo manage this and all other pending requests, visit: {{{group-requests.url}}}\n\nTo view {{requesting-user.name}}'s profile, visit: {{{profile.url}}}", buddypress ),  
  98. ),  
  99. 'messages-unread' => array( 
  100. /** translators: do not remove {} brackets or translate its contents. */ 
  101. 'post_title' => __( '[{{{site.name}}}] New message from {{sender.name}}', buddypress ),  
  102. /** translators: do not remove {} brackets or translate its contents. */ 
  103. 'post_content' => __( "{{sender.name}} sent you a new message: "{{usersubject}}"\n\n<blockquote>"{{usermessage}}"</blockquote>\n\n<a href=\"{{{message.url}}}\">Go to the discussion</a> to reply or catch up on the conversation.", buddypress ),  
  104. /** translators: do not remove {} brackets or translate its contents. */ 
  105. 'post_excerpt' => __( "{{sender.name}} sent you a new message: \"{{usersubject}}\"\n\n\"{{usermessage}}\"\n\nGo to the discussion to reply or catch up on the conversation: {{{message.url}}}", buddypress ),  
  106. ),  
  107. 'settings-verify-email-change' => array( 
  108. /** translators: do not remove {} brackets or translate its contents. */ 
  109. 'post_title' => __( '[{{{site.name}}}] Verify your new email address', buddypress ),  
  110. /** translators: do not remove {} brackets or translate its contents. */ 
  111. 'post_content' => __( "You recently changed the email address associated with your account on {{site.name}} to {{user.email}}. If this is correct, <a href=\"{{{verify.url}}}\">go here to confirm the change</a>.\n\nOtherwise, you can safely ignore and delete this email if you have changed your mind, or if you think you have received this email in error.", buddypress ),  
  112. /** translators: do not remove {} brackets or translate its contents. */ 
  113. 'post_excerpt' => __( "You recently changed the email address associated with your account on {{site.name}} to {{user.email}}. If this is correct, go to the following link to confirm the change: {{{verify.url}}}\n\nOtherwise, you can safely ignore and delete this email if you have changed your mind, or if you think you have received this email in error.", buddypress ),  
  114. ),  
  115. 'groups-membership-request-accepted' => array( 
  116. /** translators: do not remove {} brackets or translate its contents. */ 
  117. 'post_title' => __( '[{{{site.name}}}] Membership request for group "{{group.name}}" accepted', buddypress ),  
  118. /** translators: do not remove {} brackets or translate its contents. */ 
  119. 'post_content' => __( "Your membership request for the group "<a href=\"{{{group.url}}}\">{{group.name}}</a>" has been accepted.", buddypress ),  
  120. /** translators: do not remove {} brackets or translate its contents. */ 
  121. 'post_excerpt' => __( "Your membership request for the group \"{{group.name}}\" has been accepted.\n\nTo view the group, visit: {{{group.url}}}", buddypress ),  
  122. ),  
  123. 'groups-membership-request-rejected' => array( 
  124. /** translators: do not remove {} brackets or translate its contents. */ 
  125. 'post_title' => __( '[{{{site.name}}}] Membership request for group "{{group.name}}" rejected', buddypress ),  
  126. /** translators: do not remove {} brackets or translate its contents. */ 
  127. 'post_content' => __( "Your membership request for the group "<a href=\"{{{group.url}}}\">{{group.name}}</a>" has been rejected.", buddypress ),  
  128. /** translators: do not remove {} brackets or translate its contents. */ 
  129. 'post_excerpt' => __( "Your membership request for the group \"{{group.name}}\" has been rejected.\n\nTo request membership again, visit: {{{group.url}}}", buddypress ),  
  130. ),  
  131. );