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/profile/edit.php

    r9604 r9814  
    1 <?php do_action( 'bp_before_profile_edit_content' );
     1<?php
     2
     3/**
     4 * Fires after the display of member profile edit content.
     5 *
     6 * @since BuddyPress (1.1.0)
     7 */
     8do_action( 'bp_before_profile_edit_content' );
    29
    310if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) :
     
    613<form action="<?php bp_the_profile_group_edit_form_action(); ?>" method="post" id="profile-edit-form" class="standard-form <?php bp_the_profile_group_slug(); ?>">
    714
    8     <?php do_action( 'bp_before_profile_field_content' ); ?>
     15    <?php
     16
     17        /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
     18        do_action( 'bp_before_profile_field_content' ); ?>
    919
    1020        <h4><?php printf( __( "Editing '%s' Profile Group", "buddypress" ), bp_get_the_profile_group_name() ); ?></h4>
     
    2838                $field_type->edit_field_html();
    2939
     40                /**
     41                 * Fires before the display of visibility options for the field.
     42                 *
     43                 * @since BuddyPress (1.7.0)
     44                 */
    3045                do_action( 'bp_custom_profile_edit_fields_pre_visibility' );
    3146                ?>
     
    5166                <?php endif ?>
    5267
    53                 <?php do_action( 'bp_custom_profile_edit_fields' ); ?>
     68                <?php
     69
     70                /**
     71                 * Fires after the visibility options for a field.
     72                 *
     73                 * @since BuddyPress (1.1.0)
     74                 */
     75                do_action( 'bp_custom_profile_edit_fields' ); ?>
    5476
    5577                <p class="description"><?php bp_the_profile_field_description(); ?></p>
     
    5880        <?php endwhile; ?>
    5981
    60     <?php do_action( 'bp_after_profile_field_content' ); ?>
     82    <?php
     83
     84    /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
     85    do_action( 'bp_after_profile_field_content' ); ?>
    6186
    6287    <div class="submit">
     
    7297<?php endwhile; endif; ?>
    7398
    74 <?php do_action( 'bp_after_profile_edit_content' ); ?>
     99<?php
     100
     101/**
     102 * Fires after the display of member profile edit content.
     103 *
     104 * @since BuddyPress (1.1.0)
     105 */
     106do_action( 'bp_after_profile_edit_content' ); ?>
Note: See TracChangeset for help on using the changeset viewer.