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)


Top ↑

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.
	);
}


Top ↑

Changelog

Changelog
VersionDescription
4.9.6Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More