bp_document_activity_after_email_content( BP_Activity_Activity $activity )
Added text on the email when replied on the activity.
Description
Parameters
- $activity
-
(Required) Activity Object.
Source
File: bp-document/bp-document-filters.php
function bp_document_activity_after_email_content( $activity ) { $document_ids = bp_activity_get_meta( $activity->id, 'bp_document_ids', true ); if ( ! empty( $document_ids ) ) { $document_ids = explode( ',', $document_ids ); $document_text = sprintf( _n( '%s document', '%s documents', count( $document_ids) , 'buddyboss' ), number_format_i18n( count( $document_ids ) ) ); $content = sprintf( /* translator: 1. Activity link, 2. Activity document count */ __( '<a href="%1$s" target="_blank">%2$s uploaded</a>', 'buddyboss' ), bp_activity_get_permalink( $activity->id ), $document_text ); echo wpautop( $content ); } }
Changelog
Version | Description |
---|---|
BuddyBoss 1.4.7 | Introduced. |
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.