$$ * ../../../wordpress_docker/volumes/wp_volume/wp-content/plugins/easy-login-woocommerce/includes/class-xoo-el-form-handler.php * 24 : add_filter( 'wp_new_user_notification_email', array( __CLASS__, 'newuser_notification_email' ), 20, 3 ); * */ function filter_regitration_email_CIPF($wp_new_user_notification_email, $user, $blogname) { PLGNTLS_class::debug_infos(); $wp_new_user_notification_email['message'] = get_email_registration_CIPF(); return $wp_new_user_notification_email; } add_filter('wp_new_user_notification_email', 'filter_regitration_email_CIPF', 21, 3); /* * OPTIONS * */ function set_email_registration_CIPF($email, $is_email_prof, $is_email_partner) { PLGNTLS_class::debug_infos(); $option_email = PLGNTLS_class::OPTION_EMAIL; $option_data = array(); $option_data['email'] = $email; $option_data['is_email_prof'] = $is_email_prof; $option_data['is_email_partner'] = $is_email_partner; update_option($option_email['_name'], serialize($option_data), '', 'no'); } function get_email_registration_option_CIPF() { PLGNTLS_class::debug_infos(); $option_email = PLGNTLS_class::OPTION_EMAIL; $email_option_serialized = get_option($option_email['_name']); if (false === $email_option_serialized) { add_option($option_email['_name'], serialize($option_email['_default']), '', 'no'); $email_option_serialized = get_option($option_email['_name']); } return unserialize($email_option_serialized); } function get_email_registration_CIPF() { PLGNTLS_class::debug_infos(); $email_option = get_email_registration_option_CIPF(); return $email_option['email']; } function is_email_registration_prof_CIPF() { PLGNTLS_class::debug_infos(); $email_option = get_email_registration_option_CIPF(); return $email_option['is_email_prof']; } function is_email_registration_partner_CIPF() { PLGNTLS_class::debug_infos(); $email_option = get_email_registration_option_CIPF(); return $email_option['is_email_partner']; } ?>