Advertisement
kalponikoronno

Elementor controls select2

Nov 3rd, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1. protected function _register_controls(){
  2.    
  3.     $this->start_controls_section('content_section', [
  4.         'label' => __('Content', 'hestia-elementor'),
  5.         'tab' => \Elementor\Controls_Manager::TAB_CONTENT
  6.     ]);
  7.    
  8.     $this->add_control('el_select_2', [
  9.         'label' => __('El Select 2', 'elementor-extension'),
  10.         'type' => \Elementor\Controls_Manager::SELECT2,
  11.         'label_block' => true,
  12.         'multiple' => true,
  13.         'options' => [
  14.             'BD' => __('Bangladesh', 'elementor-extension'),
  15.             'BR' => __('Brazil', 'elementor-extension'),
  16.             'AR' => __('Arzentina', 'elementor-extension'),
  17.             'AU' => __('Australia', 'elementor-extension'),
  18.             'DK' => __('Denmark', 'elementor-extension'),
  19.         ]
  20.     ]);
  21.  
  22.     $this->end_controls_section();
  23.    
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement