AMP_Customizer_Design_Settings::register_customizer_settings PHP Метод

register_customizer_settings() публичный статический Метод

public static register_customizer_settings ( $wp_customize )
    public static function register_customizer_settings($wp_customize)
    {
        // Header text color setting
        $wp_customize->add_setting('amp_customizer[header_color]', array('type' => 'option', 'default' => self::DEFAULT_HEADER_COLOR, 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage'));
        // Header background color
        $wp_customize->add_setting('amp_customizer[header_background_color]', array('type' => 'option', 'default' => self::DEFAULT_HEADER_BACKGROUND_COLOR, 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage'));
        // Background color scheme
        $wp_customize->add_setting('amp_customizer[color_scheme]', array('type' => 'option', 'default' => self::DEFAULT_COLOR_SCHEME, 'sanitize_callback' => array(__CLASS__, 'sanitize_color_scheme'), 'transport' => 'postMessage'));
    }