Changeset 7406 for trunk/bp-activity/bp-activity-functions.php
- Timestamp:
- 10/10/2013 02:44:00 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-functions.php
r7403 r7406 1034 1034 * An array of arguments. 1035 1035 * @type int|bool $id Pass an activity ID to update an existing item, or 1036 * 1036 * false to create a new item. Default: false. 1037 1037 * @type string $action Optional. The activity action/description, typically 1038 * 1038 * something like "Joe posted an update". 1039 1039 * @type string $content Optional. The content of the activity item. 1040 1040 * @type string $component The unique name of the component associated with 1041 * 1041 * the activity item - 'groups', 'profile', etc. 1042 1042 * @type string $type The specific activity type, used for directory 1043 * 1043 * filtering. 'new_blog_post', 'activity_update', etc. 1044 1044 * @type string $primary_link Optional. The URL for this item, as used in 1045 * RSS feeds. Defaults to the URL for this 1046 * activity item's permalink page. 1045 * RSS feeds. Defaults to the URL for this activity item's permalink page. 1047 1046 * @type int|bool $user_id Optional. The ID of the user associated with the 1048 * activity item. May be set to false or 0 if the 1049 * item is not related to any user. Default: the ID 1050 * of the currently logged-in user. 1047 * activity item. May be set to false or 0 if the item is not related 1048 * to any user. Default: the ID of the currently logged-in user. 1051 1049 * @type int $item_id Optional. The ID of the associated item. 1052 1050 * @type int $secondary_item_id Optional. The ID of a secondary associated 1053 * 1051 * item. 1054 1052 * @type string $date_recorded Optional. The GMT time, in Y-m-d h:i:s format, 1055 * when the item was recorded. Defaults to the 1056 * current time. 1053 * when the item was recorded. Defaults to the current time. 1057 1054 * @type bool $hide_sitewide Should the item be hidden on sitewide streams? 1058 * 1055 * Default: false. 1059 1056 * @type bool $is_spam Should the item be marked as spam? Default: false. 1060 1057 * } … … 1315 1312 * 1316 1313 * @param array $args To delete specific activity items, use 1317 * $args = array( 'id' => $ids ); 1318 * Otherwise, to use filters for item deletion, the argument 1319 * format is the same as BP_Activity_Activity::get(). See 1320 * that method for a description. 1314 * $args = array( 'id' => $ids ); 1315 * Otherwise, to use filters for item deletion, the argument format is 1316 * the same as BP_Activity_Activity::get(). See that method for a description. 1321 1317 * @return bool True on success, false on failure. 1322 1318 */
Note: See TracChangeset
for help on using the changeset viewer.