[wp-trac] [WordPress Trac] #44034: Privacy: Introduce a function to count user requests by type

WordPress Trac noreply at wordpress.org
Thu May 10 11:13:55 UTC 2018


#44034: Privacy: Introduce a function to count user requests by type
----------------------------+------------------------------
 Reporter:  birgire         |      Owner:  (none)
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:  trunk
 Severity:  normal          |   Keywords:  2nd-opinion gdpr
  Focuses:  administration  |
----------------------------+------------------------------
 The user request list tables use
 {{{WP_Privacy_Requests_Table::get_request_counts( $type )}}} to count user
 requests by type.

 If export- and erase bubble counts will be added in #44000 and if e.g.
 plugins or core will add request stats to the dashboard ( e.g. "At a
 glance" or "Activity" metaboxes), then it makes sense to introduce a
 function like:

 {{{
 wp_count_user_requests( $type )
 }}}

 where type is either {{{'remove_personal_data'}}} and
 {{{'export_personal_data'}}}.

 An alternative would be if {{{wp_count_post( $post_type = 'user_request'
 )}}} would support {{{$post_name}}} as well, for the request types.

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


More information about the wp-trac mailing list