Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/28/2015 01:52:18 AM (10 years ago)
Author:
tw2113
Message:

Adds hooks documentation for the members template files.

Fixes #5948.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/member-header.php

    r9604 r9814  
    1010?>
    1111
    12 <?php do_action( 'bp_before_member_header' ); ?>
     12<?php
     13
     14/**
     15 * Fires before the display of a member's header.
     16 *
     17 * @since BuddyPress (1.2.0)
     18 */
     19do_action( 'bp_before_member_header' ); ?>
    1320
    1421<div id="item-header-avatar">
     
    2835    <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
    2936
    30     <?php do_action( 'bp_before_member_header_meta' ); ?>
     37    <?php
     38
     39    /**
     40     * Fires before the display of the member's header meta.
     41     *
     42     * @since BuddyPress (1.2.0)
     43     */
     44    do_action( 'bp_before_member_header_meta' ); ?>
    3145
    3246    <div id="item-meta">
     
    4458        <div id="item-buttons">
    4559
    46             <?php do_action( 'bp_member_header_actions' ); ?>
     60            <?php
     61
     62            /**
     63             * Fires in the member header actions section.
     64             *
     65             * @since BuddyPress (1.2.6)
     66             */
     67            do_action( 'bp_member_header_actions' ); ?>
    4768
    4869        </div><!-- #item-buttons -->
    4970
    5071        <?php
    51         /***
    52          * If you'd like to show specific profile fields here use:
    53          * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field
    54          */
     72
     73         /**
     74          * Fires after the group header actions section.
     75          *
     76          * If you'd like to show specific profile fields here use:
     77          * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field
     78          *
     79          * @since BuddyPress (1.2.0)
     80          */
    5581         do_action( 'bp_profile_header_meta' );
    5682
     
    6187</div><!-- #item-header-content -->
    6288
    63 <?php do_action( 'bp_after_member_header' ); ?>
     89<?php
    6490
    65 <?php do_action( 'template_notices' ); ?>
     91/**
     92 * Fires after the display of a member's header.
     93 *
     94 * @since BuddyPress (1.2.0)
     95 */
     96do_action( 'bp_after_member_header' ); ?>
     97
     98<?php
     99
     100/** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     101do_action( 'template_notices' ); ?>
Note: See TracChangeset for help on using the changeset viewer.