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

    r6320 r6438  
    353353    $stack = array_unique( array_filter( $stack ) );
    354354
     355    // Filter & return
    355356    return (array) apply_filters( 'bbp_get_template_stack', $stack ) ;
    356357}
     
    412413    $template  = bbp_set_theme_compat_template( $template );
    413414
     415    // Filter & return
    414416    return apply_filters( "bbp_{$type}_template", $template );
    415417}
     
    429431        ''
    430432    );
     433
     434    // Filter & return
    431435    return apply_filters( 'bbp_get_template_locations', $locations, $templates );
    432436}
     
    453457    }
    454458
     459    // Filter & return
    455460    return apply_filters( 'bbp_add_template_stack_locations', array_unique( $retval ), $stacks );
    456461}
Note: See TracChangeset for help on using the changeset viewer.