Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/16/2025 11:04:14 PM (3 months ago)
Author:
johnjamesjacoby
Message:

Tools - Code Improvement: Document some filters.

This commit improves the code documentation of several filters across the codebase.

Props johnjamesjacoby, narenin, sirlouen.

In trunk, for 2.7.

See #3110.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/capabilities.php

    r7350 r7361  
    1919function bbp_get_reply_caps() {
    2020
    21     // Filter & return
     21    /**
     22     * Filters the reply capabilities.
     23     *
     24     * @since 2.0.0
     25     *
     26     * @param array $caps An array of reply capabilities with keys mapping to WordPress capabilities.
     27     */
    2228    return (array) apply_filters( 'bbp_get_reply_caps', array(
    2329        'edit_posts'          => 'edit_replies',
     
    237243    }
    238244
    239     // Filter & return
     245    /**
     246     * Filters the Reply meta capabilities.
     247     *
     248     * @since 2.2.0 bbPress (r4242)
     249     *
     250     * @param array  $caps    The current capabilities being checked.
     251     * @param string $cap     The capability being checked.
     252     * @param int    $user_id The ID of the user whose capabilities are being checked.
     253     * @param array  $args    Additional arguments provided for the capability check.
     254     */
    240255    return (array) apply_filters( 'bbp_map_reply_meta_caps', $caps, $cap, $user_id, $args );
    241256}
Note: See TracChangeset for help on using the changeset viewer.