Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
_wp_privacy_statuses() WordPress Function
The _wp_privacy_statuses() function is used to retrieve the privacy statuses for a given user. This function accepts an integer user ID as its only parameter. The function returns an array of privacy statuses, each of which is an associative array with the following keys: - label: The privacy status label. - active: Whether the status is active. - dismissed: Whether the status has been dismissed. - message: The privacy status message. - tooltip: The privacy status tooltip.
_wp_privacy_statuses() #
Return statuses for privacy requests.
Return
(array)
Source
File: wp-includes/post.php
function _wp_privacy_statuses() { return array( 'request-pending' => _x( 'Pending', 'request status' ), // Pending confirmation from user. 'request-confirmed' => _x( 'Confirmed', 'request status' ), // User has confirmed the action. 'request-failed' => _x( 'Failed', 'request status' ), // User failed to confirm the action. 'request-completed' => _x( 'Completed', 'request status' ), // Admin has handled the request. ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.9.6 | Introduced. |