Filter hook 'wp_privacy_personal_data_exporters'

in WP Core File wp-admin/includes/ajax-actions.php at line 4988

View Source

wp_privacy_personal_data_exporters

Filter Hook
Description
Filters the array of exporter callbacks. Array of personal data exporters. email address and a page number and returns an array of name => value pairs of personal data. exporter. } }

Hook Information

File Location wp-admin/includes/ajax-actions.php View on GitHub
Hook Type Filter
Line Number 4988

Hook Parameters

Type Name Description
array $args { An array of callable exporters of personal data. Default empty array.

Usage Examples

Basic Usage
<?php
// Hook into wp_privacy_personal_data_exporters
add_filter('wp_privacy_personal_data_exporters', 'my_custom_filter', 10, 1);

function my_custom_filter($args) {
    // Your custom filtering logic here
    return $args;
}

Source Code Context

wp-admin/includes/ajax-actions.php:4988 - How this hook is used in WordPress core
<?php
4983  	 *         @type string   $exporter_friendly_name Translated user facing friendly name for the
4984  	 *                                                exporter.
4985  	 *     }
4986  	 * }
4987  	 */
4988  	$exporters = apply_filters( 'wp_privacy_personal_data_exporters', array() );
4989  
4990  	if ( ! is_array( $exporters ) ) {
4991  		wp_send_json_error( __( 'An exporter has improperly used the registration filter.' ) );
4992  	}
4993  

PHP Documentation

<?php
/**
	 * Filters the array of exporter callbacks.
	 *
	 * @since 4.9.6
	 *
	 * @param array $args {
	 *     An array of callable exporters of personal data. Default empty array.
	 *
	 *     @type array ...$0 {
	 *         Array of personal data exporters.
	 *
	 *         @type callable $callback               Callable exporter function that accepts an
	 *                                                email address and a page number and returns an
	 *                                                array of name => value pairs of personal data.
	 *         @type string   $exporter_friendly_name Translated user facing friendly name for the
	 *                                                exporter.
	 *     }
	 * }
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-admin/includes/ajax-actions.php
Related Hooks

Related hooks will be displayed here in future updates.