Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/21/2016 10:53:11 PM (4 years ago)
Author:
r-a-y
Message:

Groups: Introduce group type functionality on the Groups Directory page.

If a group type of foo is registered with the has_directory parameter,
you can view a group directory for foo at:
example.com/groups/type/foo/

See #7210.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-functions.php

    r11144 r11145  
    24462446
    24472447/**
     2448 * Get the "current" group type, if one is provided, in group directories.
     2449 *
     2450 * @since 2.7.0
     2451 *
     2452 * @return string
     2453 */
     2454function bp_get_current_group_directory_type() {
     2455
     2456    /**
     2457     * Filters the "current" group type, if one is provided, in group directories.
     2458     *
     2459     * @since 2.7.0
     2460     *
     2461     * @param string $value "Current" group type.
     2462     */
     2463    return apply_filters( 'bp_get_current_group_directory_type', buddypress()->groups->current_directory_type );
     2464}
     2465
     2466/**
    24482467 * Delete a group's type when the group is deleted.
    24492468 *
Note: See TracChangeset for help on using the changeset viewer.