wp_register_user_personal_data_exporter

函数


wp_register_user_personal_data_exporter ( $exporters )
参数
  • (array[])
    $exporters
    An array of personal data exporters.
    Required:
返回值
  • (array[]) An array of personal data exporters.
定义位置
  • wp-includes/user.php
    , line 3769
引入
4.9.6
弃用

Registers the personal data exporter for users.

function wp_register_user_personal_data_exporter( $exporters ) {
	$exporters['wordpress-user'] = array(
		'exporter_friendly_name' => __( 'WordPress User' ),
		'callback'               => 'wp_user_personal_data_exporter',
	);

	return $exporters;
}