Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/24/2023 03:47:44 AM (16 months ago)
Author:
imath
Message:

Improve inline doc for Members & Groups get_path_chunks() functions

  • bp_members_get_path_chunks() & bp_groups_get_path_chunks(): clearly inform these functions goal is to return customized slugs.
  • Add missing inline comment for the bp_groups_get_path_chunks() $context parameter.

See #8923

File:
1 edited

Legend:

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

    r13525 r13619  
    40264026
    40274027/**
    4028  * Get single group's path chunks using an array of URL slugs.
     4028 * Get single Groups item customized path chunks using an array of BP URL default slugs.
    40294029 *
    40304030 * @since 12.0.0
    40314031 *
    4032  * @param array $chunks An array of URL slugs.
    4033  * @return array An array of BP Rewrites URL arguments.
     4032 * @param array $chunks   An array of BP URL default slugs.
     4033 * @param string $context Whether to get chunks for the 'read', 'create' or 'manage' contexts.
     4034 * @return array An associative array containing group's customized path chunks.
    40344035 */
    40354036function bp_groups_get_path_chunks( $chunks = array(), $context = 'read' ) {
Note: See TracChangeset for help on using the changeset viewer.