_wp_privacy_resend_request
函数
_wp_privacy_resend_request ( $request_id )
- Access
- Private
- 参数
-
-
(int)
$request_id
Request ID.- Required: 是
-
(int)
- 返回值
-
- (true|WP_Error) Returns true if sending the email was successful, or a WP_Error object.
- 定义位置
-
-
wp-admin/includes/privacy-tools.php
, line 18
-
wp-admin/includes/privacy-tools.php
- 引入
- 4.9.6
- 弃用
- –
Resend an existing request and return the result.
function _wp_privacy_resend_request( $request_id ) { $request_id = absint( $request_id ); $request = get_post( $request_id ); if ( ! $request || 'user_request' !== $request->post_type ) { return new WP_Error( 'privacy_request_error', __( 'Invalid personal data request.' ) ); } $result = wp_send_user_request( $request_id ); if ( is_wp_error( $result ) ) { return $result; } elseif ( ! $result ) { return new WP_Error( 'privacy_request_error', __( 'Unable to initiate confirmation for personal data request.' ) ); } return true; }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。