<?php namespace Elementor; function progression_xion_trainer_elements_elementor_init(){ Plugin::instance()->elements_manager->add_category( 'progression-elements-xion-cat', [ 'title' => 'Xion Addons', 'icon' => 'font' ], 1 ); } add_action('elementor/init','Elementor\progression_xion_trainer_elements_elementor_init'); //Query Categories List function xion_elements_post_type_categories(){ //https://developer.wordpress.org/reference/functions/get_terms/ $terms = get_terms( array( 'taxonomy' => 'portfolio-category', 'hide_empty' => true, )); if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){ foreach ( $terms as $term ) { $options[ $term->slug ] = $term->name; } return $options; } }