title: how can i add post-categories list in elementor custom widget
body: <p><strong>My control code is</strong>
  i want to create control in elementor which shows all post categories. please help me how can i achieve this...</p>
  <p><a href="https://i.stack.imgur.com/2uGUJ.png" rel="nofollow noreferrer">enter image description here</a></p>
  <pre><code>
              $this-&gt;add_control(
                  'show_elements',
                  [
                      'label' =&gt; __( 'Post Categoris', 'plugin-domain' ),
                      'type' =&gt; \Elementor\Controls_Manager::SELECT2,
                      'multiple' =&gt; true,
                      'options' =&gt; [
                          $category,
                      ],
                      
                  ]
              ); ```
  </code></pre>