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' ) { |
| 4510 | 4510 | 'groups-membership-request-rejected-by-admin' => $groups_membership_request_rejected_by_admin, |
| 4511 | 4511 | ); |
| 4512 | 4512 | |
| | 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 | |
| 4513 | 4522 | if ( $field !== 'all' ) { |
| 4514 | 4523 | return wp_list_pluck( $types, $field ); |
| 4515 | 4524 | } else { |