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/functions.php

    r11977 r12008  
    363363 */
    364364function bp_nouveau_current_user_can( $capability = '' ) {
     365    /**
     366     * Filters whether or not the current user can perform an action for BuddyPress Nouveau.
     367     *
     368     * @since 3.0.0
     369     *
     370     * @param bool   $value      Whether or not the user is logged in.
     371     * @param string $capability Current capability being checked.
     372     * @param int    $value      Current logged in user ID.
     373     */
    365374    return apply_filters( 'bp_nouveau_current_user_can', is_user_logged_in(), $capability, bp_loggedin_user_id() );
    366375}
     
    386395    // Get the hook output.
    387396    ob_start();
     397
     398    /**
     399     * Fires at the start of the output for `bp_nouveau_parse_hooked_dir_nav()`.
     400     *
     401     * This hook is variable and depends on the hook parameter passed in.
     402     *
     403     * @since 3.0.0
     404     */
    388405    do_action( $hook );
    389406    $output = ob_get_clean();
     
    452469
    453470    ob_start();
     471
     472    /**
     473     * Fires at the start of the output for `bp_nouveau_parse_hooked_options()`.
     474     *
     475     * This hook is variable and depends on the hook parameter passed in.
     476     *
     477     * @since 3.0.0
     478     */
    454479    do_action( $hook );
    455480
     
    881906function bp_nouveau_get_user_feedback( $feedback_id = '' ) {
    882907    /**
    883      * Filter to add your custom feedback messages
     908     * Filters the BuddyPress Nouveau feedback messages.
     909     *
     910     * Use this filter to add your custom feedback messages.
     911     *
     912     * @since 3.0.0
    884913     *
    885914     * @param array $value The list of feedback messages.
Note: See TracChangeset for help on using the changeset viewer.