[wp-trac] [WordPress Trac] #43910: Add actions and filters so plugins can easily extend export/erasure functionality
WordPress Trac
noreply at wordpress.org
Tue May 22 09:53:20 UTC 2018
#43910: Add actions and filters so plugins can easily extend export/erasure
functionality
------------------------------+---------------------
Reporter: xkon | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 4.9.8
Component: Privacy | Version: 4.9.6
Severity: normal | Resolution:
Keywords: gdpr needs-patch | Focuses:
------------------------------+---------------------
Comment (by birgire):
We have these filters on the query arguments for the corresponding list
tables:
- {{{ms_sites_list_table_query_args}}}
- {{{comments_list_table_query_args}}}
- {{{users_list_table_query_args}}}
that are useful if one adds a custom drilldown on the list tables.
So here are more filters to consider:
- {{{export_personal_data_list_table_query_args}}}
- {{{remove_personal_data_list_table_query_args}}}
for the {{{WP_Query}}} arguments in
{{{WP_Privacy_Requests_Table::prepare_items()}}}.
**Example:**
{{{
/**
* Filters the arguments for the requests query in the Privacy Requests
list table.
*
* @since 4.9.8
*
* @param array $args An array of WP_Query arguments.
*/
$requests_query = new WP_Query( apply_filters( $this->request_type .
'_list_table_query_args', $args ) );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43910#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list