Skip to main content

Filter: dt_pre_get_authorized_sites

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

Parameters​

NameTypeDescription
$authorized_sitesarrayArray of WP_Site object and post type objects the user can edit.
$contextstringThe context of the authorization.

Since​

  • 1.2
  • 1.3.7: Added the $context parameter.

Source​

Defined in includes/classes/InternalConnections/NetworkSiteConnection.php at line 890

Returns​

Array of WP_Site object and post type objects.

Ready to Get Started?

Distributor is a WordPress plugin that makes it easy to syndicate and reuse content across your websites — whether in a single multisite or across the web.