wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
_wp_privacy_account_request_confirmed is private and should not be used in themes or plugins directly.
_wp_privacy_account_request_confirmed › WordPress Function
Seit4.9.6
Veraltetn/v
› _wp_privacy_account_request_confirmed ( $request_id )
Zugriff: |
|
Parameter: |
|
Definiert in: |
|
Codex: |
Updates log when privacy request is confirmed.
Quellcode
function _wp_privacy_account_request_confirmed( $request_id ) { $request = wp_get_user_request( $request_id ); if ( ! $request ) { return; } if ( ! in_array( $request->status, array( 'request-pending', 'request-failed' ), true ) ) { return; } update_post_meta( $request_id, '_wp_user_request_confirmed_timestamp', time() ); wp_update_post( array( 'ID' => $request_id, 'post_status' => 'request-confirmed', ) ); }