DetectTheme

A hook that helps to detect the site’s theme based on cookies.

Installation:

new DetectTheme::hook()

Options:

  • cookie_name - Cookie parameter for the theme. Default is `theme`.