Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/27/2017 05:04:31 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Tools: Add //Filter & return note for future discovery of missing filter documentation.

Also adjust some type-casting on filtered results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/sub-actions.php

    r6302 r6438  
    468468 */
    469469function bbp_plugin_locale( $locale = '', $domain = '' ) {
     470
     471    // Filter & return
    470472    return apply_filters( 'bbp_plugin_locale', $locale, $domain );
    471473}
     
    480482 */
    481483function bbp_request( $query_vars = array() ) {
     484
     485    // Filter & return
    482486    return apply_filters( 'bbp_request', $query_vars );
    483487}
     
    494498 */
    495499function bbp_template_include( $template = '' ) {
     500
     501    // Filter & return
    496502    return apply_filters( 'bbp_template_include', $template );
    497503}
     
    516522 * @since 2.0.0 bbPress (r2944)
    517523 *
     524 * @param array $themes
    518525 * @uses apply_filters() Calls 'bbp_allowed_themes' with the allowed themes list
    519526 */
    520527function bbp_allowed_themes( $themes ) {
     528
     529    // Filter & return
    521530    return apply_filters( 'bbp_allowed_themes', $themes );
    522531}
     
    533542 */
    534543function bbp_map_meta_caps( $caps = array(), $cap = '', $user_id = 0, $args = array() ) {
     544
     545    // Filter & return
    535546    return apply_filters( 'bbp_map_meta_caps', $caps, $cap, $user_id, $args );
    536547}
Note: See TracChangeset for help on using the changeset viewer.