public static function get_templates_data() { self::_get_info_data(); $templates = get_option('elementor_remote_info_templates_data'); if (empty($templates)) { return []; } return $templates; }
public function get_items() { $templates_data = Api::get_templates_data(); $templates = []; if (!empty($templates_data)) { foreach ($templates_data as $template_data) { $templates[] = $this->get_item($template_data); } } return $templates; }