public function get_items()
{
$templates_query = new \WP_Query(['post_type' => self::CPT, 'post_status' => 'publish', 'posts_per_page' => -1, 'orderby' => 'title', 'order' => 'ASC']);
$templates = [];
if ($templates_query->have_posts()) {
foreach ($templates_query->get_posts() as $post) {
$templates[] = $this->get_item($post->ID);
}
}
return $templates;
}