Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/21/2015 12:13:52 AM (10 years ago)
Author:
tw2113
Message:

Add hook documentation to BP Forums component.

Fixes #5941.

File:
1 edited

Legend:

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

    r9351 r9383  
    2929        bp_update_is_directory( true, 'forums' );
    3030
     31        /**
     32         * Fires early in the initialization of bbPress-based areas of BuddyPress.
     33         *
     34         * @since BuddyPress (1.1.0)
     35         */
    3136        do_action( 'bbpress_init' );
    3237
     
    7681        }
    7782
     83        /**
     84         * Fires right before the loading of the forums directory screen template file.
     85         *
     86         * @since BuddyPress (1.1.0)
     87         */
    7888        do_action( 'bp_forums_directory_forums_setup' );
    7989
     90        /**
     91         * Filters the template to load for the forums directory screen.
     92         *
     93         * @since BuddyPress (1.1.0)
     94         *
     95         * @param string $template Path to the forums template to load.
     96         */
    8097        bp_core_load_template( apply_filters( 'bp_forums_template_directory_forums_setup', 'forums/index' ) );
    8198    }
     
    87104 */
    88105function bp_member_forums_screen_topics() {
     106
     107    /**
     108     * Fires right before the loading of the forums topics started screen template file.
     109     *
     110     * @since BuddyPress (1.5.0)
     111     */
    89112    do_action( 'bp_member_forums_screen_topics' );
    90113
     114    /**
     115     * Filters the template to load for the forums topics started screen.
     116     *
     117     * @since BuddyPress (1.5.0)
     118     *
     119     * @param string $template Path to the forums topics started template to load.
     120     */
    91121    bp_core_load_template( apply_filters( 'bp_member_forums_screen_topics', 'members/single/home' ) );
    92122}
     
    96126 */
    97127function bp_member_forums_screen_replies() {
     128
     129    /**
     130     * Fires right before the loading of the forums replied to screen template file.
     131     *
     132     * @since BuddyPress (1.5.0)
     133     */
    98134    do_action( 'bp_member_forums_screen_replies' );
    99135
     136    /**
     137     * Filters the template to load for the forums replied to screen.
     138     *
     139     * @since BuddyPress (1.5.0)
     140     *
     141     * @param string $template Path to the forums replied to template to load.
     142     */
    100143    bp_core_load_template( apply_filters( 'bp_member_forums_screen_replies', 'members/single/home' ) );
    101144}
     
    107150 */
    108151function bp_member_forums_screen_favorites() {
     152
     153    /**
     154     * Fires right before the loading of the forums favorites screen template file.
     155     *
     156     * @since BuddyPress (1.5.0)
     157     */
    109158    do_action( 'bp_member_forums_screen_favorites' );
    110159
     160    /**
     161     * Filters the template to load for the forums favorites screen.
     162     *
     163     * @since BuddyPress (1.5.0)
     164     *
     165     * @param string $template Path to the forums favorites template to load.
     166     */
    111167    bp_core_load_template( apply_filters( 'bp_member_forums_screen_favorites', 'members/single/home' ) );
    112168}
     
    120176        return false;
    121177
     178    /**
     179     * Fires right before the loading of the forums single forum screen template file.
     180     *
     181     * @since BuddyPress (1.5.0)
     182     */
    122183    do_action( 'bp_forums_screen_single_forum' );
    123184
     185    /**
     186     * Filters the template to load for the forums single forum screen.
     187     *
     188     * @since BuddyPress (1.5.0)
     189     *
     190     * @param string $template Path to the forums single forum template to load.
     191     */
    124192    bp_core_load_template( apply_filters( 'bp_forums_screen_single_forum', 'forums/single/forum' ) );
    125193}
     
    134202        return false;
    135203
     204    /**
     205     * Fires right before the loading of the forums single topic screen template file.
     206     *
     207     * @since BuddyPress (1.5.0)
     208     */
    136209    do_action( 'bp_forums_screen_single_topic' );
    137210
     211    /**
     212     * Filters the template to load for the forums single topic screen.
     213     *
     214     * @since BuddyPress (1.5.0)
     215     *
     216     * @param string $template Path to the forums single topic template to load.
     217     */
    138218    bp_core_load_template( apply_filters( 'bp_forums_screen_single_topic', 'forums/single/topic' ) );
    139219}
Note: See TracChangeset for help on using the changeset viewer.