/home/smartbloks/public_html/help.smartbloks.ai/wp-content/themes/docly/inc/admin/functions.php
<?php 
/**
 * Get elementor templates
 *
 * @return array[]
 */
function docly_elementor_template() {
	$elementor_templates = get_posts( array(
		'post_type' 		=> 'elementor_library',
		'posts_per_page' 	=> -1,
		'status' 			=> 'publish'
	) );
	
	$elementor_templates_array = array();
	if ( ! empty( $elementor_templates ) ) {
		foreach ( $elementor_templates as $elementor_template ) {
			$elementor_templates_array[$elementor_template->ID] = $elementor_template->post_title;
		}
	}
	return $elementor_templates_array;
}