Filter: dt_pre_get_authorized_sites

apply_filters( 'dt_pre_get_authorized_sites', $authorized_sites, $context ) → {array}

Enable plugins to filter the authorized sites, before they are retrieved.

Parameters:
Name Type Description
$authorized_sites array

Array of WP_Site object and post type objects the user can edit.

$context string

The context of the authorization.

Since:
  • 1.3.7 Added the `$context` parameter.
Source:
See:
  • \Distributor\InternalConnections\NetworkSiteConnection::get_available_authorized_sites()
Returns:

Array of WP_Site object and post type objects.

Type
array