Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Taxonomies
- $this->add_control(
- 'taxonomies',
- array(
- 'label' => esc_html__( 'Taxonomies', 'site' ),
- 'type' => Controls_Manager::SELECT2,
- 'options' => site_el_get_all_taxonomies(),
- 'condition' => array(
- 'posts_option' => 'categories',
- ),
- 'multiple' => true,
- )
- );
- // Taxonomies Inclusion
- $this->add_control(
- 'taxonomies_inclusion',
- array(
- 'label' => esc_html__( 'Taxonomies Inclusion', 'site' ),
- 'type' => Controls_Manager::SELECT2,
- 'options' => site_el_get_specific_taxonomies( $taxonomies_selected ),
- 'condition' => array(
- 'posts_option' => 'categories',
- ),
- 'multiple' => true,
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement