public function register_customizer_controls() { global $wp_customize; /*$all_fields = array( 'text', 'text_multi', 'textarea', 'email', 'number', 'dimension', 'range', 'password', 'url', 'select', 'radio', 'radio_image', 'radio_button', 'checkbox', 'checkbox_image', 'checkbox_button', 'color', 'color_rgba', 'google_font', 'font_style', 'text_align', 'icon', 'image', 'editor', 'image_multi' );*/ $all_fields = CTF_Help::get_all_fields_name(); foreach ($all_fields as $field) { $control = new CTF_Customize_Control($wp_customize, 'temp', array('type' => $field)); $control->print_template(); } }
public function set_fields_name() { $this->all_fields = CTF_Help::get_all_fields_name(); }