Filter: dt_pre_get_authorized_sites
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.2
- 1.3.7: Added the
$contextparameter.
Source
Defined in includes/classes/InternalConnections/NetworkSiteConnection.php at line 890
Returns
Array of WP_Site object and post type objects.