prepare_control example


        );

    }

    /** */
    public function enqueue() {
        wp_enqueue_media();
        wp_enqueue_script( 'customize-views' );

        $this->prepare_control();

        wp_localize_script(
            'customize-views',
            '_wpCustomizeHeader',
            array(
                'data'     => array(
                    'width'         => absint( get_theme_support( 'custom-header', 'width' ) ),
                    'height'        => absint( get_theme_support( 'custom-header', 'height' ) ),
                    'flex-width'    => absint( get_theme_support( 'custom-header', 'flex-width' ) ),
                    'flex-height'   => absint( get_theme_support( 'custom-header', 'flex-height' ) ),
                    'currentImgSrc' => $this->get_current_image_src(),
                ),
Home | Imprint | This part of the site doesn't use cookies.