View Source Plausible.Plugins.API.CustomProps (Plausible v0.0.1)

Plugins API context module for Custom Props. All high level Custom Props operations should be implemented here.

Summary

Functions

Link to this function

disable(site, prop_or_props)

View Source
@spec disable(Plausible.Site.t(), String.t() | [String.t()]) ::
  :ok | {:error, Ecto.Changeset.t()}
Link to this function

enable(site, prop_or_props)

View Source
@spec enable(Plausible.Site.t(), String.t() | [String.t()]) ::
  {:ok, [String.t()]} | {:error, :upgrade_required | Ecto.Changeset.t()}