Created
August 20, 2025 06:43
-
-
Save sbrajesh/ed8298d085f6b58e1838f6f4db97d877 to your computer and use it in GitHub Desktop.
Add Permalink to BuddyPress/BuddyBoss activity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Add Permalink link to activity entry in BuddyPress/BuddyBoss. | |
| */ | |
| add_action( 'bp_activity_entry_meta', function () { | |
| printf( '<a href="%s" target="_blank" class="bp-activity-permalink">Link</a>', bp_activity_get_permalink( bp_get_activity_id() ) ); | |
| } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment