Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/19/2016 03:46:29 AM (9 years ago)
Author:
boonebgorges
Message:

Pass parsed function parameters to a number of template filters.

The template filters in question are ones that get their main context from
a template global (say, $members_template), but get auxiliary information
about how to build markup from the function params. As such, it's useful to
have these parameters available via filter.

Props Offereins.
See #6997.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-template.php

    r10784 r10785  
    30153015         *
    30163016         * @since 1.1.0
     3017         * @since 2.6.0 Added the `$r` parameter.
    30173018         *
    30183019         * @param string $value All of the links to be displayed to the user.
    3019          */
    3020         return apply_filters( 'bp_get_activity_filter_links', implode( "\n", $component_links ) );
     3020         * @param array  $r     Array of parsed arguments.
     3021         */
     3022        return apply_filters( 'bp_get_activity_filter_links', implode( "\n", $component_links ), $r );
    30213023    }
    30223024
Note: See TracChangeset for help on using the changeset viewer.