bp_registration_options_send_pending_user_email

Send an email to the pending user upon registration.

Description

bp_registration_options_send_pending_user_email( (array) $args = array() ); 

Parameters (1)

0. $args — Optional. (array) => array()
Array of argumetns for the email.

Usage

  1. if ( !function_exists( 'bp_registration_options_send_pending_user_email' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-registration-options/includes/core.php'; 
  3.  
  4. // Array of argumetns for the email. 
  5. $args = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_registration_options_send_pending_user_email($args); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/core.php  
  1. function bp_registration_options_send_pending_user_email( $args = array() ) { 
  2.  
  3. $args = wp_parse_args( $args, array( 
  4. 'user_login' => '',  
  5. 'user_email' => '',  
  6. 'message' => '',  
  7. ) ); 
  8.  
  9. /** 
  10. * Filters the arguments used for wp_mail call for pending users. 
  11. * @since 4.3.0 
  12. * @param array $args Array of wp_mail args. 
  13. */ 
  14. $args = apply_filters( 'bprwg_pending_user_email_args', $args ); 
  15.  
  16. wp_mail( $args['user_email'], __( 'Pending Membership', 'bp-registration-options' ), $args['message'] ); 
  17.