Skip to:
Content

BuddyPress.org

Ticket #5942: bp-friends-screens-5942.diff

File bp-friends-screens-5942.diff, 1.8 KB (added by tw2113, 9 years ago)
  • src/bp-friends/bp-friends-screens.php

     
    1919 */
    2020function friends_screen_my_friends() {
    2121
     22        /**
     23         * Fires before the loading of template for the My Friends page.
     24         *
     25         * @since BuddyPress (1.0.0)
     26         */
    2227        do_action( 'friends_screen_my_friends' );
    2328
     29        /**
     30         * Filters the template used to display the My Friends page.
     31         *
     32         * @since BuddyPress (1.0.0)
     33         *
     34         * @param string $template Path to the my friends template to load.
     35         */
    2436        bp_core_load_template( apply_filters( 'friends_template_my_friends', 'members/single/home' ) );
    2537}
    2638
     
    6274                bp_core_redirect( trailingslashit( bp_loggedin_user_domain() . bp_current_component() . '/' . bp_current_action() ) );
    6375        }
    6476
     77        /**
     78         * Fires before the loading of template for the friends requests page.
     79         *
     80         * @since BuddyPress (1.0.0)
     81         */
    6582        do_action( 'friends_screen_requests' );
    6683
     84        /**
     85         * Filters the template used to display the My Friends page.
     86         *
     87         * @since BuddyPress (1.0.0)
     88         *
     89         * @param string $template Path to the friends request template to load.
     90         */
    6791        bp_core_load_template( apply_filters( 'friends_template_requests', 'members/single/home' ) );
    6892}
    6993
     
    102126                                <td class="no"><input type="radio" name="notifications[notification_friends_friendship_accepted]" value="no" <?php checked( $accept_requests, 'no', true ) ?>/></td>
    103127                        </tr>
    104128
    105                         <?php do_action( 'friends_screen_notification_settings' ); ?>
     129                        <?php
    106130
     131                        /**
     132                         * Fires after the last table row on the friends notification screen.
     133                         *
     134                         * @since BuddyPress (1.0.0)
     135                         */
     136                        do_action( 'friends_screen_notification_settings' ); ?>
     137
    107138                </tbody>
    108139        </table>
    109140