* @copyright Copyright (c) 2017 - 2018, Satish Gandham */ add_action( 'customize_register', 'image_size_control_register', 1 ); function image_size_control_register( $wp_customize ) { class Helium_Customize_Control_Image_Size extends WP_Customize_Control { //@todo use named array for settings public function render_content() { $output = '

'; if ( isset( $this->settings[0] ) ) { $value = intval($this->settings[0]->value()); } else { $value = ''; } $output .= '
get_link( 0 ) . ' />x'; if ( isset( $this->settings[1] ) ) { $value = intval($this->settings[1]->value()); } else { $value = ''; } $output .= 'get_link( 1 ) . ' />
'; if ( isset( $this->settings[2] ) ) { $value = esc_attr($this->settings[2]->value()); } else { $value = ''; } $output .= '
'; echo $output; } } }