Skip to:
Content

BuddyPress.org

Changeset 14162


Ignore:
Timestamp:
12/19/2025 08:06:46 PM (7 weeks ago)
Author:
espellcaste
Message:

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).

Location:
trunk/src/bp-templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/activity/type-parts/content.php

    r13183 r14162  
    33 * BuddyPress - Activity content
    44 *
    5  * This template is used by `activity/entry.php` and showes any activity type content.
     5 * This template is used by `activity/entry.php` and shows any activity type content.
    66 *
    77 * @since 10.0.0
  • trunk/src/bp-templates/bp-nouveau/buddypress/activity/entry.php

    r13182 r14162  
    77 *
    88 * @since 3.0.0
    9  * @version 10.0.0
     9 * @version 14.0.0
    1010 */
    1111
     
    3232        </div>
    3333
     34        <?php bp_nouveau_activity_hook( 'before', 'entry_content' ); ?>
     35
    3436        <?php if ( bp_nouveau_activity_has_content() ) : ?>
    3537
     
    4143
    4244        <?php endif; ?>
     45
     46        <?php bp_nouveau_activity_hook( 'after', 'entry_content' ); ?>
    4347
    4448        <?php bp_nouveau_activity_entry_buttons(); ?>
Note: See TracChangeset for help on using the changeset viewer.