Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/23/2018 01:40:06 AM (6 years ago)
Author:
boonebgorges
Message:

Privacy: Data exporter for XProfile.

See #7817.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-filters.php

    r11803 r12110  
    7777add_filter( 'xprofile_field_options_before_save', 'bp_xprofile_sanitize_field_options' );
    7878add_filter( 'xprofile_field_default_before_save', 'bp_xprofile_sanitize_field_default' );
     79
     80// Privacy data export.
     81add_filter( 'wp_privacy_personal_data_exporters', 'bp_register_xprofile_personal_data_exporter' );
    7982
    8083/**
     
    624627    return $q;
    625628}
     629
     630/**
     631 * Register XProfile personal data exporter.
     632 *
     633 * @since 4.0.0
     634 *
     635 * @param array $exporters  An array of personal data exporters.
     636 * @return array An array of personal data exporters.
     637 */
     638function bp_register_xprofile_personal_data_exporter( $exporters ) {
     639    $exporters['buddypress-xprofile'] = array(
     640        'exporter_friendly_name' => __( 'BuddyPress XProfile Data', 'buddypress' ),
     641        'callback'               => 'bp_xprofile_personal_data_exporter',
     642    );
     643
     644    return $exporters;
     645}
Note: See TracChangeset for help on using the changeset viewer.