<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[BuddyPress][14045] trunk: Document the Activity routes for the v2 of the BP REST API</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://buddypress.trac.wordpress.org/changeset/14045">14045</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://buddypress.trac.wordpress.org/changeset/14045","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>imath</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2024-10-14 17:42:19 +0000 (Mon, 14 Oct 2024)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Document the Activity routes for the v2 of the BP REST API
Adds a pages explaining Activity endpoints.
Props espellcaste
See <a href="http://buddypress.trac.wordpress.org/ticket/9145">#9145</a>
Closes https://github.com/buddypress/buddypress/pull/385</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdocsdeveloperexecutioncontextsrestapireferencemd">trunk/docs/developer/execution-contexts/rest-api/reference.md</a></li>
<li><a href="#trunkdocsdevelopermanifestjson">trunk/docs/developer/manifest.json</a></li>
<li><a href="#trunksrcbpactivityclassesclassbpactivityrestcontrollerphp">trunk/src/bp-activity/classes/class-bp-activity-rest-controller.php</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunkdocsdeveloperexecutioncontextsrestapiactivitymd">trunk/docs/developer/execution-contexts/rest-api/activity.md</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdocsdeveloperexecutioncontextsrestapiactivitymd"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/docs/developer/execution-contexts/rest-api/activity.md</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/docs/developer/execution-contexts/rest-api/activity.md (rev 0)
+++ trunk/docs/developer/execution-contexts/rest-api/activity.md 2024-10-14 17:42:19 UTC (rev 14045)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,276 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+# Activity REST API routes
+
+BuddyPress activities inform about actions and interactions of the community site’s members. Members can share public announcements and react about these by commenting or favoriting them. Activities also log events generated by the other BuddyPress components, for instance, when two users become friends.
+
+> [!IMPORTANT]
+> The Activity component is an optional one. This means the activity endpoints will only be available if the component is active on the community site.
+
+## Schema
+
+The schema defines all the fields that exist for an activity object.
+
+| Property | Description |
+| --- | --- |
+| `id` | Unique identifier for the activity item. <br />JSON data type: _integer_. <br />Read only. <br />Context: `embed`, `view`, `edit`. |
+| `primary_item_id` | The ID of some other object primarily associated with this activity item. <br />JSON data type: _integer_. <br />Context: `embed`, `view`, `edit`. |
+| `secondary_item_id` | The ID of some other object also associated with this activity item. <br />JSON data type: _integer_. <br />Context: `embed`, `view`, `edit`. |
+| `user_id` | The ID for the author of the activity item. <br />JSON data type: _integer_. <br />Read only. <br />Context: `embed`, `view`, `edit`. |
+| `link` | The permalink to this activity item on the site. <br />JSON data type: _string_, format: _URI_. <br />Read only. <br />Context: `embed`, `view`, `edit`. |
+| `component` | The BuddyPress component the activity item relates to. <br />JSON data type: _string_. <br/>One of: the active BuddyPress component names. <br />Context: `embed`, `view`, `edit`. |
+| `type` | The type of the activity (e.g.: `activity_update`). <br />JSON data type: _string_. <br />One of: the registered activity types. <br />Context: `embed`, `view`, `edit`. |
+| `title` | The description of the activity item’s type (eg: Username posted an update). <br />JSON data type: _string_. <br />Read only. <br />Context: `embed`, `view`, `edit`. |
+| `content` | The `raw` and `rendered` contents of the activity item. <br />JSON data type: _object_ (properties: `raw`, `rendered` ). <br />Context: `embed`, `view`, `edit`. |
+| `date` | The date the activity item was published, in the site’s timezone. <br />JSON data type: _string_ \| _null_, format: _date-time_. <br />Read only. <br />Context: `embed`, `view`, `edit`. |
+| `date_gmt` | The date the activity item was published, as GMT. <br />JSON data type: _string_ \| _null_, format: _date-time_. <br />Read only. <br />Context: `embed`, `view`, `edit`. |
+| `status` | Whether the activity has been marked as spam or not. <br />JSON data type: _string_. <br />Read only. <br />One of: `published`, `spam`. <br />Context: `embed`, `view`, `edit`. |
+| `comments` | A list of comments which are children of the activity item. <br />JSON data type: _array_. <br />Read only. <br />Context: `embed`, `view`, `edit`. |
+| `comment_count` | Total number of comments which are children of the activity item. <br />JSON data type: _integer_. <br />Read only. <br />Context: `embed`, `view`, `edit`. |
+| `hidden` | Whether the activity item should be sitewide hidden or not. <br />JSON data type: _boolean_. <br />Read only. <br />Context: `embed`, `edit`. |
+| `favorited` | Whether the activity item has been favorited by the current user. <br />JSON data type: _boolean_. <br />Read only. <br />Context: `embed`, `view`, `edit`. |
+| `user_avatar`[^1] | Avatar URLs for the author of the activity item (Full & Thumb sizes). <br />JSON data type: _object_ (properties: `full`, and `thumb`). <br />Read only. <br />Context: `embed`, `view`, `edit`. |
+
+## List Activities
+
+### Arguments
+
+| Name | Description |
+| --- | --- |
+| `context` | Scope under which the request is made; determines fields present in response. <br />JSON data type: _string_. <br/>Default: `view`. <br/>One of: `view`, `embed`, `edit`. |
+| `page` | Current page of the collection. <br />JSON data type: _integer_. <br />Default: `1`. |
+| `per_page` | Maximum number of activity items to be returned in result set. <br />JSON data type: _integer_. <br />Default: `10`. |
+| `search` | Limit results to those matching a string. <br />JSON data type: _string_. |
+| `exclude` | Ensure result set excludes specific IDs. <br />JSON data type: _array_. <br />Default: `[]`. |
+| `include` | Ensure result set includes specific IDs. <br />JSON data type: _array_. <br />Default: `[]`. |
+| `order` | Order sort attribute ascending or descending. <br />JSON data type: _string_. <br />Default: `desc`. <br/>One of: `desc`, `asc`. |
+| `after` | Limit result set to activity items published after a given ISO8601 compliant date. <br />JSON data type: _string_ \| _null_, format: _date-time_. |
+| `user_id` | Limit result set to activity items created by a specific user (ID). <br />JSON data type: _integer_. <br />Default: `0`. |
+| `status` | Limit result set to activity items with a specific status. <br />JSON data type: _string_. <br />Default: `ham_only`. <br />One of: `ham_only`, `spam_only`, `all`. |
+| `scope` | Limit result set to activity items with a specific scope. <br />JSON data type: _string_. <br />One of: `just-me`, `friends`, `groups`, `favorites`, `mentions`. |
+| `group_id` | Limit result set to activity items created by a specific group. <br />JSON data type: _integer_. <br />Default: `0`. |
+| `site_id` | Limit result set to activity items created by a specific site. <br />JSON data type: _integer_. <br />Default: `0`. |
+| `primary_id` | Limit result set to activity items with a specific prime association ID. <br />JSON data type: _integer_. <br />Default: `0`. |
+| `secondary_id` | Limit result set to activity items with a specific secondary association ID. <br />JSON data type: _integer_. <br />Default: `0`. |
+| `component` | Limit result set to activity items with a specific BuddyPress component. <br />JSON data type: _string_. <br />One of: the active BuddyPress component names. |
+| `type` | Limit result set to activity items with one or more specific activity type. <br />JSON data type: _array_. <br />One of: the registered activity types. |
+| `display_comments` | No comments by default, stream for within stream display, threaded for below each activity item. <br />JSON data type: _string_. <br />Default: `''`. |
+
+### Definition
+
+`GET /buddypress/v2/activity`
+
+### Example of use
+
+> [!WARNING]
+> The `requestHeaders` object needs to be set according to the WordPress REST API nonce. Read more about the [REST API authentification](./README.md#about-authentification).
+
+```javascript
+fetch( '/wp-json/buddypress/v2/activity?context=view&type=activity_update', {
+ method: 'GET',
+ headers: requestHeaders,
+} ).then( ( response ) => {
+ return response.json();
+} ).then( ( data ) => {
+ console.table( data );
+} );
+```
+
+### JSON Response
+
+- An array of objects representing the matching activity items on success.
+- An object containg the error code, data and message on failure.
+
+## Create an activity item
+
+Logged in users can create sitewide activity items. When the Groups component is active, only group members can create activity items within the corresponding group.
+
+### Arguments
+
+| Name | Description |
+| --- | --- |
+| `primary_item_id` | The ID of some other object primarily associated with this one. <br />JSON data type: _integer_. |
+| `primary_item_id` | The ID of some other object also associated with this one. <br />JSON data type: _integer_. |
+| `link` | The permalink to this activity item on the site. <br />JSON data type: _string_, format: _URI_. |
+| `component` | The active BuddyPress component the activity relates to. <br />JSON data type: _string_. <br />One of: the active BuddyPress component names. <br />Default: `activity`. |
+| `type` | The type of the activity (e.g.: `activity_update`). <br />JSON data type: _string_. <br />One of: the registered activity types. <br />Default: `activity_update`. |
+| `content` | Allowed HTML content for the activity. <br />JSON data type: _string_. |
+| `hidden` | Whether the activity item should be sitewide hidden or not. <br />JSON data type: _boolean_. |
+
+### Definition
+
+`POST /buddypress/v2/activity`
+
+### Example of use
+
+> [!WARNING]
+> The `requestHeaders` object needs to be set according to the WordPress REST API nonce. Read more about the [REST API authentification](./README.md#about-authentification).
+
+```javascript
+fetch( '/wp-json/buddypress/v2/activity', {
+ method: 'POST',
+ headers: requestHeaders,
+ body: JSON.stringify(
+ {
+ content: 'bapuu is the BuddyPress wapuu',
+ }
+ ),
+} ).then( ( response ) => {
+ return response.json();
+} ).then( ( data ) => {
+ console.log( data );
+} );
+```
+
+### JSON Response
+
+- An object representing the created activity item on success.
+- An object containg the error code, data and message on failure.
+
+## Retrieve a specific activity item
+
+### Arguments
+
+| Name | Description |
+| --- | --- |
+| `id` | A unique numeric ID for the activity item. **Required**. <br />JSON data type: _integer_. |
+| `context` | Scope under which the request is made; determines fields present in response. <br />JSON data type: _string_. <br /> Default: `view`. <br /> One of: `view, embed, edit`. |
+
+### Definition
+
+`GET /buddypress/v2/activity/<id>`
+
+### Example of use
+
+> [!WARNING]
+> The `requestHeaders` object needs to be set according to the WordPress REST API nonce. Read more about the [REST API authentification](./README.md#about-authentification).
+
+```javascript
+fetch( '/wp-json/buddypress/v2/activity/18', {
+ method: 'GET',
+ headers: requestHeaders,
+} ).then( ( response ) => {
+ return response.json();
+} ).then( ( data ) => {
+ console.log( data );
+} );
+```
+
+### JSON Response
+
+- An object representing the activity item on success.
+- An object containg the error code, data and message on failure.
+
+## Update a specific activity item
+
+### Arguments
+
+| Name | Description |
+| --- | --- |
+| `id` | A unique numeric ID for the activity item. **Required**. <br />JSON data type: _integer_. |
+| `primary_item_id` | The ID of some other object primarily associated with this one. <br />JSON data type: _integer_. |
+| `primary_item_id` | The ID of some other object also associated with this one. <br />JSON data type: _integer_. |
+| `link` | The permalink to this activity item on the site. <br />JSON data type: _string_, format: _URI_. |
+| `component` | The active BuddyPress component the activity relates to. <br />JSON data type: _string_. <br />One of: the active BuddyPress component names. <br />Default: `activity`. |
+| `type` | The type of the activity (e.g.: `activity_update`). **Required**. <br />JSON data type: _string_. <br />One of: the registered activity types. <br />Default: `activity_update`. |
+| `content` | Allowed HTML content for the activity. <br />JSON data type: _string_. |
+| `hidden` | Whether the activity item should be sitewide hidden or not. <br />JSON data type: _boolean_. |
+
+### Definition
+
+`PUT /buddypress/v2/activity/<id>`
+
+### Example of use
+
+> [!WARNING]
+> The `requestHeaders` object needs to be set according to the WordPress REST API nonce. Read more about the [REST API authentification](./README.md#about-authentification).
+
+```javascript
+fetch( '/wp-json/buddypress/v2/activity/18', {
+ method: 'PUT',
+ headers: requestHeaders,
+ body: JSON.stringify(
+ {
+ content: 'bapuu, The BP wapuu.',
+ type: 'activity_update',
+ }
+ ),
+} ).then( ( response ) => {
+ return response.json();
+} ).then( ( data ) => {
+ console.log( data );
+} );
+```
+
+### JSON Response
+
+- An object representing the updated activity item on success.
+- An object containg the error code, data and message on failure.
+
+## Delete a specific activity item
+
+### Arguments
+
+| Name | Description |
+| --- | --- |
+| `id` | A unique numeric ID for the activity item. **Required**. <br />JSON data type: _integer_. |
+
+### Definition
+
+`DELETE /buddypress/v2/activity/<id>`
+
+### Example of use
+
+> [!WARNING]
+> The `requestHeaders` object needs to be set according to the WordPress REST API nonce. Read more about the [REST API authentification](./README.md#about-authentification).
+
+```javascript
+fetch( '/wp-json/buddypress/v2/activity/18', {
+ method: 'DELETE',
+ headers: requestHeaders,
+} ).then( ( response ) => {
+ return response.json();
+} ).then( ( data ) => {
+ console.log( data );
+} );
+```
+
+### JSON Response
+
+- An object informing about the `deleted` status and the `previous` activity item on success.
+- An object containg the error code, data and message on failure.
+
+## Add or remove a specific activity item from favorited activities
+
+**NB**: the same endpoint is used to favorite and unfavorite an activity item. In case the activity is already favorited, it will remove this activity item from favorite activities.
+
+### Arguments
+
+| Name | Description |
+| --- | --- |
+| `id` | A unique numeric ID for the activity item. **Required**. <br />JSON data type: _integer_. |
+
+### Definition
+
+`POST /buddypress/v2/activity/<id>/favorite`
+
+### Example of use
+
+> [!WARNING]
+> The `requestHeaders` object needs to be set according to the WordPress REST API nonce. Read more about the [REST API authentification](./README.md#about-authentification).
+
+```javascript
+fetch( '/wp-json/buddypress/v2/activity/17/favorite', {
+ method: 'POST',
+ headers: requestHeaders,
+} ).then( ( response ) => {
+ return response.json();
+} ).then( ( data ) => {
+ console.log( data );
+} );
+```
+
+### JSON Response
+
+- An object representing the activity item on success.
+- An object containg the error code, data and message on failure.
+
+[^1]: This property is only available if the WordPress discussion settings allow avatars.
</ins></span></pre></div>
<a id="trunkdocsdeveloperexecutioncontextsrestapireferencemd"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/docs/developer/execution-contexts/rest-api/reference.md</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/docs/developer/execution-contexts/rest-api/reference.md 2024-10-10 19:57:42 UTC (rev 14044)
+++ trunk/docs/developer/execution-contexts/rest-api/reference.md 2024-10-14 17:42:19 UTC (rev 14045)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -17,7 +17,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> | Member Profile Photo | `/buddypress/v2/members/<user_id>/avatar` |
</span><span class="cx" style="display: block; padding: 0 10px"> | Member Profile Cover | `/buddypress/v2/members/<user_id>/cover` |
</span><span class="cx" style="display: block; padding: 0 10px"> | Member Registration | `/buddypress/v2/signup` |
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-| Activity | `/buddypress/v2/activity` |
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+| [Activity](./activity.md) | `/buddypress/v2/activity` |
</ins><span class="cx" style="display: block; padding: 0 10px"> | Extended Profile Groups | `/buddypress/v2/xprofile/groups` |
</span><span class="cx" style="display: block; padding: 0 10px"> | Extended Profile Field | `/buddypress/v2/xprofile/fields` |
</span><span class="cx" style="display: block; padding: 0 10px"> | Extended Profile Data | `/buddypress/v2/xprofile/<field_id>/data/<user_id>` |
</span></span></pre></div>
<a id="trunkdocsdevelopermanifestjson"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/docs/developer/manifest.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/docs/developer/manifest.json 2024-10-10 19:57:42 UTC (rev 14044)
+++ trunk/docs/developer/manifest.json 2024-10-14 17:42:19 UTC (rev 14045)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -96,6 +96,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "parent": "bp-rest-api-reference"
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "title": "Activity REST API routes",
+ "slug": "bp-rest-api-activity",
+ "markdown_source": "../developer/execution-contexts/rest-api/activity.md",
+ "parent": "bp-rest-api-reference"
+ },
+ {
</ins><span class="cx" style="display: block; padding: 0 10px"> "title": "BuddyPress Functions",
</span><span class="cx" style="display: block; padding: 0 10px"> "slug": "bp-functions",
</span><span class="cx" style="display: block; padding: 0 10px"> "markdown_source": "../developer/functions/README.md",
</span></span></pre></div>
<a id="trunksrcbpactivityclassesclassbpactivityrestcontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-activity/classes/class-bp-activity-rest-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-activity/classes/class-bp-activity-rest-controller.php 2024-10-10 19:57:42 UTC (rev 14044)
+++ trunk/src/bp-activity/classes/class-bp-activity-rest-controller.php 2024-10-14 17:42:19 UTC (rev 14045)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1385,7 +1385,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'format' => 'date-time',
</span><span class="cx" style="display: block; padding: 0 10px"> ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'date_gmt' => array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'context' => array( 'view', 'edit' ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'context' => array( 'view', 'edit', 'embed' ),
</ins><span class="cx" style="display: block; padding: 0 10px"> 'description' => __( 'The date the activity was published, as GMT.', 'buddypress' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'readonly' => true,
</span><span class="cx" style="display: block; padding: 0 10px"> 'type' => array( 'string', 'null' ),
</span></span></pre>
</div>
</div>
</body>
</html>