Retrieves site data given a site ID or site object.


  • Full name: get_site_by
  • Defined in: cms/core/Shared/Helpers/site.php

Parameters

Parameter Type Description
$field string The field to retrieve the site with (id, key or slug).
$value string A value for $field.

Return Value

object|bool