inc/customizer/customizer.php

class Largo_Customizer
The Largo_Customizer gives a visually responsive setup interface.
get_instance()

Get the instance of the Largo Customizer

action_customize_register()

Register our customizer options

action_customize_preview_init()

Add contextual information when the Customizer is loaded

action_customize_controls_enqueue_scripts()

Enqueue scripts and styles specific to the Largo Customizer

Customizer settings based on context

filter_customize_value()

Filter customizer values to use our existing settings framework

Parameters:
  • $default (mixed) – Default registered value for the setting
Returns:

mixed

action_customize_update()

Handle an update to one of our Customizer settings

Parameters:
  • $value (mixed) –
action_customize_preview()

Handle the preview of one of our setting values

action_customize_save_fetch_less_variables()

Cache all of the LESS variables to a class variable for updating

action_customize_save_after_save_less_variables()

If the values have changed, save and regenerate the stylesheet