Retrieve content by a given field from the content table.


  • Full name: get_content_by
  • Defined in: cms/core/Shared/Helpers/content.php

Parameters

Parameter Type Description
$field string The field to retrieve the content with
(id = content_id, type = content_content_type, slug = content_slug).
$value string A value for $field (content_id, content_content_type, content_slug).

Return Value

false|object