Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/28/2018 01:32:52 AM (8 years ago)
Author:
tw2113
Message:

add/touchup documentation to a lot of Nouveau actions and filters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/members/functions.php

    r11900 r12008  
    216216    }
    217217
     218    /**
     219     * Filters the BuddyPress Nouveau template hierarchy after resetting front template for members.
     220     *
     221     * @since 3.0.0
     222     *
     223     * @param array $templates Array of templates.
     224     */
    218225    return apply_filters( '_bp_nouveau_member_reset_front_template', $templates );
    219226}
     
    285292    }
    286293
     294    /**
     295     * Filters the found template parts for the member template part locating functionality.
     296     *
     297     * @since 3.0.0
     298     *
     299     * @param array $templates Array of found templates.
     300     */
    287301    return bp_locate_template( apply_filters( 'bp_nouveau_member_locate_template_part', $templates ), false, true );
    288302}
     
    305319
    306320        /**
    307          * Let plugins adding an action to bp_get_template_part get it from here
     321         * Let plugins adding an action to bp_get_template_part get it from here.
     322         *
     323         * @since 3.0.0
    308324         *
    309325         * @param string $slug Template part slug requested.
     
    402418    add_filter( 'bp_before_has_members_parse_args', 'bp_nouveau_member_members_widget_overrides', 10, 1 );
    403419
     420    /**
     421     * Fires after Nouveau adds its members home widget filters.
     422     *
     423     * @since 3.0.0
     424     */
    404425    do_action( 'bp_nouveau_members_add_home_widget_filters' );
    405426}
     
    415436    remove_filter( 'bp_before_has_members_parse_args', 'bp_nouveau_member_members_widget_overrides', 10, 1 );
    416437
     438    /**
     439     * Fires after Nouveau removes its members home widget filters.
     440     *
     441     * @since 3.0.0
     442     */
    417443    do_action( 'bp_nouveau_members_remove_home_widget_filters' );
    418444}
     
    428454 */
    429455function bp_nouveau_get_wp_profile_fields( $user = null ) {
    430     // Leave a chance to plugins to avoid showing the contact methods they're adding on front end.
     456    /**
     457     * Filters the contact methods to be included in the WP Profile fields for a specific user.
     458     *
     459     * Provide a chance for plugins to avoid showing the contact methods they're adding on front end.
     460     *
     461     * @since 3.0.0
     462     *
     463     * @param array   $value Array of user contact methods.
     464     * @param WP_User $user  WordPress user to get contact methods for.
     465     */
    431466    $contact_methods = (array) apply_filters( 'bp_nouveau_get_wp_profile_field', wp_get_user_contact_methods( $user ), $user );
    432467
Note: See TracChangeset for help on using the changeset viewer.