Skip to:
Content

BuddyPress.org

Ticket #9329: 9329.patch

File 9329.patch, 714 bytes (added by indigetal, 2 months ago)
  • src/bp-core/bp-core-functions.php

    diff --git src/bp-core/bp-core-functions.php src/bp-core/bp-core-functions.php
    index bd6c6ba2e..8077ecc18 100644
    function bp_email_get_type_schema( $field = 'description' ) { 
    45104510                'groups-membership-request-rejected-by-admin' => $groups_membership_request_rejected_by_admin,
    45114511        );
    45124512
     4513        /**
     4514         * Filters the email type schema, allowing anyone to add/update email type metadata.
     4515         *
     4516         * @since 15.0.0
     4517         *
     4518         * @param array $types The array of email type metadata.
     4519         */
     4520        $types = apply_filters( 'bp_email_get_type_schema', $types );
     4521
    45134522        if ( $field !== 'all' ) {
    45144523                return wp_list_pluck( $types, $field );
    45154524        } else {