wpseek.com
WordPress开发者和主题制作者的搜索引擎
_wp_privacy_completed_request is private and should not be used in themes or plugins directly.
_wp_privacy_completed_request › WordPress Function
Since4.9.6
已弃用n/a
› _wp_privacy_completed_request ( $request_id )
| 访问: |
|
| 参数: |
|
| 返回: |
|
| 定义在: |
|
| 文档: |
Marks a request as completed by the admin and logs the current timestamp.
源码
function _wp_privacy_completed_request( $request_id ) {
// Get the request.
$request_id = absint( $request_id );
$request = wp_get_user_request( $request_id );
if ( ! $request ) {
return new WP_Error( 'privacy_request_error', __( 'Invalid personal data request.' ) );
}
update_post_meta( $request_id, '_wp_user_request_completed_timestamp', time() );
$result = wp_update_post(
array(
'ID' => $request_id,
'post_status' => 'request-completed',
)
);
return $result;
}