添加请求页面。

原型

_wp_privacy_hook_requests_page()

源文件

路径:wp-admin/includes/user.php

<?php
...
function _wp_privacy_hook_requests_page() {
	add_submenu_page( 'tools.php', __( 'Export Personal Data' ), __( 'Export Personal Data' ), 'export_others_personal_data', 'export_personal_data', '_wp_personal_data_export_page' );
	add_submenu_page( 'tools.php', __( 'Erase Personal Data' ), __( 'Erase Personal Data' ), 'erase_others_personal_data', 'remove_personal_data', '_wp_personal_data_removal_page' );
}
...
?>

其他

英文文档:https://developer.wordpress.org/reference/functions/_wp_privacy_hook_requests_page/