Contents
BP_Activity_Activity::__construct( int|bool $id = false )
Constructor method.
Description
Parameters
- $id
-
(int|bool) (Optional) The ID of a specific activity item.
Default value: false
Source
File: bp-activity/classes/class-bp-activity-activity.php
public function __construct( $id = false ) { // Instantiate errors object. $this->errors = new WP_Error; if ( !empty( $id ) ) { $this->id = (int) $id; $this->populate(); } }
Changelog
Version | Description |
---|---|
BuddyPress 1.5.0 | Introduced. |
Related
Uses
Uses | Description |
---|---|
bp-activity/classes/class-bp-activity-activity.php: BP_Activity_Activity::populate() |
Populate the object with data about the specific activity item. |
Used By | Description |
---|---|
bp-activity/bp-activity-filters.php: bp_blogs_activity_comment_content_with_read_more() |
Function which set the content on activity blog post comment. |
bp-templates/bp-nouveau/includes/media/functions.php: bp_nouveau_media_activity_edit_button() |
Edit button alter when media activity other than activity page. |
bp-templates/bp-nouveau/includes/document/functions.php: bp_nouveau_document_activity_edit_button() |
Edit button alter when document activity other than activity page. |
bp-document/classes/class-bp-rest-document-endpoint.php: BP_REST_Document_Endpoint::bp_rest_create_document() |
Create the Document IDs from Upload IDs. |
bp-activity/bp-activity-functions.php: bp_activity_get_edit_data() |
Get the Activity edit data. |
bp-activity/bp-activity-filters.php: bp_activity_edit_update_media() |
Update media and activity for media updation and deletion while editing the activity. |
bp-activity/bp-activity-filters.php: bp_activity_edit_update_document() |
Update document and activity for document updation and deletion while editing the activity. |
bp-activity/bp-activity-filters.php: bp_nouveau_remove_edit_activity_entry_buttons() |
We removing the Edit Button on Document/Media Activity popup until we fully support on popup. |
bp-document/classes/class-bp-document.php: BP_Document::delete() |
Delete document items from the database. |
bp-document/bp-document-functions.php: bp_document_move_folder_to_folder() |
This function will move folder to another destination folder id. |
bp-document/bp-document-functions.php: bp_document_update_privacy() |
Update document privacy with nested level. |
bp-document/bp-document-functions.php: bp_document_move_document_to_folder() |
This function will document into the folder. |
bp-document/bp-document-filters.php: bp_document_admin_repair_document() |
Repair BuddyBoss document. |
bp-document/bp-document-filters.php: bp_document_update_activity_document_meta() |
Update document for activity. |
bp-document/bp-document-filters.php: bp_document_update_document_privacy() |
Update document privacy according to folder’s privacy. |
bp-templates/bp-nouveau/includes/document/ajax.php: bp_nouveau_ajax_document_activity_delete() | |
bp-templates/bp-nouveau/includes/activity/template-tags.php: bp_nouveau_activity_privacy() |
Output the privacy option inside an Activity Loop. |
bp-templates/bp-nouveau/includes/activity/ajax.php: bp_nouveau_ajax_activity_update_privacy() |
Update activity privacy via a POST request. |
bp-media/bp-media-filters.php: bp_media_admin_repair_media() |
Repair BuddyBoss media. |
bp-media/bp-media-filters.php: bp_media_update_activity_media_meta() |
Update media for activity |
bp-media/classes/class-bp-rest-media-endpoint.php: BP_REST_Media_Endpoint::bp_rest_create_media() |
Create the Media IDs from Upload IDs. |
bp-activity/bp-activity-functions.php: bp_activity_remove_user_favorite_meta() |
Delete users liked activity meta. |
bp-activity/bp-activity-filters.php: bp_activity_has_media_activity_filter() |
Filter the activities for document and media privacy |
bp-activity/bp-activity-filters.php: bp_activity_media_add() |
Create media activity for each media uploaded |
bp-activity/bp-activity-filters.php: bp_activity_create_parent_media_activity() |
Create main activity for the media uploaded and saved. |
bp-activity/bp-activity-filters.php: bp_activity_new_at_mention_permalink() |
Generate permalink for comment mention notification. |
bp-activity/bp-activity-filters.php: bp_activity_document_add() |
Create document activity for each document uploaded |
bp-activity/bp-activity-filters.php: bp_activity_create_parent_document_activity() |
Create main activity for the media uploaded and saved. |
bp-activity/bp-activity-filters.php: bp_activity_comment_privacy_update() |
Recursive function to update privacy of comment with nested level. |
bp-activity/classes/class-bp-rest-activity-comment-endpoint.php: BP_REST_Activity_Comment_Endpoint::create_item() |
Create an activity comment. |
bp-activity/classes/class-bp-rest-activity-endpoint.php: BP_REST_Activity_Endpoint::update_item() |
Update an activity. |
bp-media/bp-media-functions.php: bp_media_import_reset_media_albums() |
Reset all media albums related data in tables |
bp-media/bp-media-functions.php: bp_media_import_reset_media() |
Reset all media related data in tables |
bp-forums/activity.php: BBP_BuddyPress_Activity::get_activity_id() |
Check for an existing activity stream entry for a given post_id |
bp-media/bp-media-functions.php: bp_media_import_buddyboss_media_tables() |
Import BuddyBoss Media plugin db tables into Media Component |
bp-media/bp-media-filters.php: bp_media_comment_embed_gif() |
Embed gif in activity comment content |
bp-media/bp-media-filters.php: bp_media_activity_comment_entry() |
Get activity comment entry media to render on front end |
bp-media/bp-media-filters.php: bp_media_update_media_privacy() |
Update media privacy according to album’s privacy |
bp-media/classes/class-bp-media.php: BP_Media::delete() |
Delete media items from the database. |
bp-blogs/bp-blogs-activity.php: bp_blogs_post_type_comments_avoid_duplicates() |
Limit the display of post type synced comments. |
bp-blogs/bp-blogs-activity.php: bp_blogs_activity_comment_single_permalink() |
Changes single activity comment entries to use the blog comment permalink. |
bp-blogs/bp-blogs-activity.php: bp_blogs_activity_comment_single_action() |
Formats single activity comment entries to use the blog comment action. |
bp-blogs/bp-blogs-activity.php: bp_blogs_setup_comment_loop_globals_on_ajax() |
Set up some globals used in the activity comment loop when AJAX is used. |
bp-blogs/bp-blogs-activity.php: bp_blogs_sync_add_from_activity_comment() |
Syncs activity comments and posts them back as blog comments. |
bp-blogs/bp-blogs-activity.php: bp_blogs_sync_delete_from_activity_comment() |
Deletes the blog comment when the associated activity comment is deleted. |
bp-blogs/bp-blogs-activity.php: bp_blogs_sync_activity_edit_to_post_comment() |
Updates the blog comment when the associated activity comment is edited. |
bp-groups/bp-groups-activity.php: groups_record_activity() |
Record an activity item related to the Groups component. |
bp-groups/bp-groups-activity.php: bp_groups_filter_activity_can_comment_reply() |
Function used to determine if a user can reply on a group activity comment. |
bp-templates/bp-nouveau/includes/activity/ajax.php: bp_nouveau_ajax_spam_activity() |
AJAX spam an activity item or comment. |
bp-templates/bp-nouveau/includes/activity/ajax.php: bp_nouveau_ajax_delete_activity() |
Deletes an Activity item/Activity comment item received via a POST request. |
bp-templates/bp-nouveau/includes/activity/ajax.php: bp_nouveau_ajax_new_activity_comment() |
Posts new Activity comments received via a POST request. |
bp-core/bp-core-tools-default-data.php: bp_dd_import_groups_activity() |
Import groups activity – aka “status updates”. |
bp-core/bp-core-tools-default-data.php: bp_dd_import_users_activity() |
Import Activity – aka “status updates”. |
bp-core/classes/class-bp-email-tokens.php: BP_Email_Tokens::token__activity_reply() |
Generate the output for token activity_reply |
bp-activity/bp-activity-functions.php: bp_update_activity_feed_of_custom_post_type() |
Update the custom post type activity feed after the attachment attached to that particular custom post type. |
bp-activity/bp-activity-functions.php: bp_update_activity_feed_of_post() |
Update the post activity feed after the attachment attached to that particular post. |
bp-activity/bp-activity-functions.php: bp_activity_transition_post_type_comment_status() |
When a post type comment status transition occurs, update the relevant activity’s status. |
bp-activity/bp-activity-functions.php: bp_activity_new_comment_notification() |
Send email and BP notifications when an activity item receives a comment. |
bp-activity/bp-activity-functions.php: bp_activity_at_message_notification() |
Send email and BP notifications when a user is mentioned in an update. |
bp-activity/bp-activity-functions.php: bp_activity_get_permalink() |
Get the permalink for a single activity item. |
bp-activity/bp-activity-functions.php: bp_activity_delete_comment() |
Delete an activity comment. |
bp-activity/bp-activity-functions.php: bp_activity_delete_children() |
Delete an activity comment’s children. |
bp-activity/bp-activity-functions.php: bp_activity_new_comment() |
Add an activity comment. |
bp-activity/bp-activity-functions.php: bp_activity_post_type_update() |
Update the activity item for a custom post type entry. |
bp-activity/bp-activity-functions.php: bp_activity_add() |
Add an activity item. |
bp-activity/bp-activity-functions.php: bp_activity_post_update() |
Post an activity update. |
bp-activity/bp-activity-functions.php: bp_activity_spam_all_user_data() |
Mark all of the user’s activity as spam. |
bp-activity/bp-activity-functions.php: bp_activity_ham_all_user_data() |
Mark all of the user’s activity as ham (not spam). |
bp-activity/bp-activity-functions.php: bp_activity_adjust_mention_count() |
Adjusts mention count for mentioned users in activity items. |
bp-activity/bp-activity-filters.php: bp_activity_media_fix_data() |
Fix to BuddyBoss media activity data |
bp-activity/bp-activity-admin.php: bp_activity_admin_reply() |
AJAX receiver for Activity replies via the admin screen. |
bp-activity/bp-activity-admin.php: bp_activity_admin_load() |
Set up the Activity admin page. |
bp-activity/actions/delete.php: bp_activity_action_delete_activity() |
Delete specific activity item and redirect to previous page. |
bp-activity/actions/spam.php: bp_activity_action_spam_activity() |
Mark specific activity item as spam and redirect to previous page. |
bp-activity/classes/class-bp-activity-oembed-extension.php: BP_Activity_oEmbed_Extension::validate_url_to_item_id() |
Validates the URL to determine if the activity item is valid. |
bp-activity/classes/class-bp-activity-oembed-extension.php: BP_Activity_oEmbed_Extension::set_oembed_response_data() |
Sets the oEmbed response data for our activity item. |
bp-activity/classes/class-bp-activity-oembed-extension.php: BP_Activity_oEmbed_Extension::set_fallback_html() |
Sets a custom |
bp-activity/classes/class-bp-activity-activity.php: BP_Activity_Activity::get_activity_comments() |
Get activity comments that are associated with a specific activity ID. |
bp-activity/classes/class-bp-activity-list-table.php: BP_Activity_List_Table::can_comment() |
Checks if an activity item can be replied to. |
bp-activity/classes/class-bp-activity-list-table.php: BP_Activity_List_Table::column_comment() |
Content column, and “quick admin” rollover actions. |
bp-activity/bp-activity-template.php: bp_activity_get_comment_depth() |
Return the current activity comment depth. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.