bp_friends_register_personal_data_exporters( array $exporters )

Registers Friends personal data exporter.


Parameters Parameters

$exporters

(array) (Required) An array of personal data exporters.


Top ↑

Return Return

(array) An array of personal data exporters.


Source Source

File: bp-friends/bp-friends-filters.php

function bp_friends_register_personal_data_exporters( $exporters ) {
	$exporters['buddypress-friends'] = array(
		'exporter_friendly_name'    => __( 'BuddyPress Friends', 'buddypress' ),
		'callback'                  => 'bp_friends_personal_data_exporter',
		'exporter_bp_friendly_name' => _x( 'Friends', 'BuddyPress Friends data exporter friendly name', 'buddypress' ),
	);

	$exporters['buddypress-friends-pending-sent-requests'] = array(
		'exporter_friendly_name'    => __( 'BuddyPress Friend Requests (Sent)', 'buddypress' ),
		'callback'                  => 'bp_friends_pending_sent_requests_personal_data_exporter',
		'exporter_bp_friendly_name' => _x( 'Friend Requests (Sent)', 'BuddyPress Friend Requests data exporter friendly name', 'buddypress' ),
	);

	$exporters['buddypress-friends-pending-received-requests'] = array(
		'exporter_friendly_name'    => __( 'BuddyPress Friend Requests (Received)', 'buddypress' ),
		'callback'                  => 'bp_friends_pending_received_requests_personal_data_exporter',
		'exporter_bp_friendly_name' => _x( 'Friend Requests (Received)', 'BuddyPress Friend Requests data exporter friendly name', 'buddypress' ),
	);

	return $exporters;
}

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 adds an exporter_bp_friendly_name param to exporters.
4.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.