Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/18/2014 01:07:17 PM (12 years ago)
Author:
boonebgorges
Message:

Hook documentation for part of the Friends component.

Includes bp-friends-activity, bp-friends-widgets, and bp-friends-screens.

Props tw2113.
See #5942.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-friends/bp-friends-screens.php

    r8705 r9154  
    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}
     
    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}
     
    103127                        </tr>
    104128
    105                         <?php do_action( 'friends_screen_notification_settings' ); ?>
     129                        <?php
     130
     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' ); ?>
    106137
    107138                </tbody>
Note: See TracChangeset for help on using the changeset viewer.