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/settings/notifications.php

    r9604 r9814  
    1 <?php do_action( 'bp_before_member_settings_template' ); ?>
     1<?php
     2
     3/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
     4do_action( 'bp_before_member_settings_template' ); ?>
    25
    36<form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/notifications'; ?>" method="post" class="standard-form" id="settings-form">
    47    <p><?php _e( 'Send an email notice when:', 'buddypress' ); ?></p>
    58
    6     <?php do_action( 'bp_notification_settings' ); ?>
     9    <?php
    710
    8     <?php do_action( 'bp_members_notification_settings_before_submit' ); ?>
     11    /**
     12     * Fires at the top of the member template notification settings form.
     13     *
     14     * @since BuddyPress (1.0.0)
     15     */
     16    do_action( 'bp_notification_settings' ); ?>
     17
     18    <?php
     19
     20    /**
     21     * Fires before the display of the submit button for user notification saving.
     22     *
     23     * @since BuddyPress (1.5.0)
     24     */
     25    do_action( 'bp_members_notification_settings_before_submit' ); ?>
    926
    1027    <div class="submit">
     
    1229    </div>
    1330
    14     <?php do_action( 'bp_members_notification_settings_after_submit' ); ?>
     31    <?php
     32
     33    /**
     34     * Fires after the display of the submit button for user notification saving.
     35     *
     36     * @since BuddyPress (1.5.0)
     37     */
     38    do_action( 'bp_members_notification_settings_after_submit' ); ?>
    1539
    1640    <?php wp_nonce_field('bp_settings_notifications' ); ?>
     
    1842</form>
    1943
    20 <?php do_action( 'bp_after_member_settings_template' ); ?>
     44<?php
     45
     46/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
     47do_action( 'bp_after_member_settings_template' ); ?>
Note: See TracChangeset for help on using the changeset viewer.