Advertisement
ashishsthanp

Elementor control

May 8th, 2018
488
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1. // Taxonomies
  2. $this->add_control(
  3.     'taxonomies',
  4.     array(
  5.         'label'     => esc_html__( 'Taxonomies', 'site' ),
  6.         'type'      => Controls_Manager::SELECT2,
  7.         'options'   => site_el_get_all_taxonomies(),
  8.         'condition' => array(
  9.             'posts_option' => 'categories',
  10.         ),
  11.         'multiple'  => true,
  12.     )
  13. );
  14.  
  15. // Taxonomies Inclusion
  16. $this->add_control(
  17.     'taxonomies_inclusion',
  18.     array(
  19.         'label'     => esc_html__( 'Taxonomies Inclusion', 'site' ),
  20.         'type'      => Controls_Manager::SELECT2,
  21.         'options'   => site_el_get_specific_taxonomies( $taxonomies_selected ),
  22.         'condition' => array(
  23.             'posts_option' => 'categories',
  24.         ),
  25.         'multiple'  => true,
  26.     )
  27. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement