[wp-trac] [WordPress Trac] #44178: Filtering the latest emails due to the upcoming GDPR rule

WordPress Trac noreply at wordpress.org
Mon May 21 18:43:42 UTC 2018


#44178: Filtering the latest emails due to the upcoming GDPR rule
--------------------------+-----------------------------
 Reporter:  Dono12        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Privacy       |    Version:  4.9.6
 Severity:  major         |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I've been trying to convert wp_send_user_request into an HTML email
 format.
 I've had some success so far but I'm having trouble getting the various
 $action_names
 don't know if this is due to a bug.

 {{{#!php
 <?php
 switch ( $action_name ) {
                 case 'export_personal_data':
                         $description = __( 'Export Personal Data' );
                         break;
                 case 'remove_personal_data':
                         $description = __( 'Erase Personal Data' );
                         break;
                 default:
                         /* translators: %s: action name */
                         $description = sprintf( __( 'Confirm the "%s"
 action' ), $action_name );
                         break;
         }
 }}}



 also the user email doesn't
 show in my custom email.

 Another possible bug:
 I'm also getting duplicate emails. The original which is empty only
 showing the number one and the one I created using filter,
 "user_request_action_email_content". I've already tried copying all the
 content within the function wp_send_user_request
 into my custom HTML formatted email function but it only breaks at the
 point of sending, (Send Request).

 Since I'm pressed for time, as we all are, I would appreciate it if
 someone can back to me soon.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44178>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list