💎 PREMIUM: Ticket/ - Uncensored 2025

Skip to:

Opened 7 months ago

Closed 10 days ago

Last modified 9 days ago

#9287 closed enhancement (fixed)

We should have hook before and after activity content

Reported by: bhargavbhandari90's profile bhargavbhandari90 Owned by: espellcaste's profile espellcaste
Milestone: 14.5.0 Priority: normal
Severity: normal Version:
Component: Templates Keywords: has-patch
Cc: emaralive

Description

There is no hook we can use to inject content before and after activity content in bp-templates/bp-nouveau/buddypress/activity/entry.php

Attachments (2)

9287.patch (655 bytes) - added by bhargavbhandari90 7 months ago.
hook for before and after activity content
9287-v2.patch (637 bytes) - added by bhargavbhandari90 7 months ago.
V2 with improved hook name.

Download all attachments as: .zip

Change History (8)

@bhargavbhandari90
7 months ago

hook for before and after activity content

#1 @emaralive
7 months ago

  • Cc emaralive added

@bhargavbhandari90
7 months ago

V2 with improved hook name.

This ticket was mentioned in PR #410 on buddypress/buddypress by @bhargavbhandari90.


7 months ago
#2

  • Keywords has-patch added

Added hooks for before and after activity content. So that we can extend any functionality from plugins.

Trac ticket: https://buddypress.trac.wordpress.org/ticket/9287

#3 @espellcaste
10 days ago

  • Component changed from Core to Templates
  • Milestone changed from Awaiting Review to 14.5.0

#4 @espellcaste
10 days ago

In 14161:

BP Nouveau: Introduce a new hook before/after an Activity Stream (Single Item).

New entry_content hooks were introduced before/after an Activity Stream. The hook name followed the pattern in the template, e.g. entry_comments.

Developed in https://github.com/buddypress/buddypress/pull/410

Props bhargavbhandari90.

See #9287 (14.0).

#5 follow-up: @espellcaste
10 days ago

  • Owner set to espellcaste
  • Resolution set to fixed
  • Status changed from new to closed

In 14162:

BP Nouveau: Introduce a new hook before/after an Activity Stream (Single Item).

New entry_content hooks were introduced before/after an Activity Stream. The hook name followed the pattern in the template, e.g. entry_comments.

Props bhargavbhandari90.

Closes https://github.com/buddypress/buddypress/pull/410.
Fixes #9287 (trunk).

#6 in reply to: ↑ 5 @bhargavbhandari90
9 days ago

Thank you guys.

Note: See TracTickets for help on using tickets.