diff --git src/bp-core/bp-core-functions.php src/bp-core/bp-core-functions.php
index 5dae2bc..19172d4 100644
|
|
function bp_send_email( $email_type, $to, $args = array() ) { |
3135 | 3135 | $email->set_to( $to ); |
3136 | 3136 | $email->set_tokens( $args['tokens'] ); |
3137 | 3137 | |
| 3138 | /** |
| 3139 | * Gives you access on the email object before sending out |
| 3140 | * |
| 3141 | * @since 2.8.0 |
| 3142 | * |
| 3143 | * @param BP_Email $email The email object containing all email data. |
| 3144 | * @param string $email_type Type of email being sent. |
| 3145 | * @param string|array|int|WP_User $to Either a email address, user ID, WP_User object, |
| 3146 | * or an array containg the address and name. |
| 3147 | * @param array $args { |
| 3148 | * Optional. Array of extra. parameters. |
| 3149 | * |
| 3150 | * @type array $tokens Optional. Assocative arrays of string replacements for the email. |
| 3151 | * } |
| 3152 | */ |
| 3153 | do_action_ref_array( 'bp_send_email', array( &$email, $email_type, $to, $args ) ); |
| 3154 | |
3138 | 3155 | $status = $email->validate(); |
3139 | 3156 | if ( is_wp_error( $status ) ) { |
3140 | 3157 | return $status; |