Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/28/2015 01:52:18 AM (9 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/plugins.php

    r9604 r9814  
    1111?>
    1212
    13         <?php do_action( 'bp_before_member_plugin_template' ); ?>
     13        <?php
     14
     15        /**
     16         * Fires at the start of the member plugin template.
     17         *
     18         * @since BuddyPress (1.2.0)
     19         */
     20        do_action( 'bp_before_member_plugin_template' ); ?>
    1421
    1522        <?php if ( ! bp_is_current_component_core() ) : ?>
     
    1926                <?php bp_get_options_nav(); ?>
    2027
    21                 <?php do_action( 'bp_member_plugin_options_nav' ); ?>
     28                <?php
     29
     30                /**
     31                 * Fires inside the member plugin template nav <ul> tag.
     32                 *
     33                 * @since BuddyPress (1.2.2)
     34                 */
     35                do_action( 'bp_member_plugin_options_nav' ); ?>
    2236            </ul>
    2337        </div><!-- .item-list-tabs -->
     
    2539        <?php endif; ?>
    2640
    27         <h3><?php do_action( 'bp_template_title' ); ?></h3>
     41        <h3><?php
    2842
    29         <?php do_action( 'bp_template_content' ); ?>
     43            /**
     44             * Fires inside the member plugin template <h3> tag.
     45             *
     46             * @since BuddyPress (1.0.0)
     47             */
     48            do_action( 'bp_template_title' ); ?></h3>
    3049
    31         <?php do_action( 'bp_after_member_plugin_template' ); ?>
     50        <?php
     51
     52        /**
     53         * Fires and displays the member plugin template content.
     54         *
     55         * @since BuddyPress (1.0.0)
     56         */
     57        do_action( 'bp_template_content' ); ?>
     58
     59        <?php
     60
     61        /**
     62         * Fires at the end of the member plugin template.
     63         *
     64         * @since BuddyPress (1.2.0)
     65         */
     66        do_action( 'bp_after_member_plugin_template' ); ?>
Note: See TracChangeset for help on using the changeset viewer.