All features

Cherry Blossom feature

Frontend: Visual Settings

Frontend visual-settings integration.

Frontend visual-settings integration.

Capabilities and extension points

Injects validated visual settings into SCSS compilation.

Whether stylesheet recompilation has been scheduled for this request.

  • var bool

Initializes the module.

Registers visual-setting hooks.

Registers selected Google Fonts through the theme enqueue system.

  • param mixed $styles Style definitions.
  • return array Style definitions.

Adds Theme Options values to the SCSS compiler.

  • param \ScssPhp\ScssPhp\Compiler $compiler SCSS compiler.

Schedules recompilation when a visual option changes.

  • param string $option Option name.

Recompiles stylesheets that consume visual settings.

Determines whether an option affects the main stylesheet.

  • param string $option Option name.
  • return bool Whether the stylesheet depends on the option.

Source reference

This editable reference page is based on the PHP documentation in frontend/class-visual-settings.php.