Elementor\TemplateLibrary\Source_Local::get_item PHP Method

get_item() public method

public get_item ( integer $item_id ) : array
$item_id integer
return array
    public function get_item($item_id)
    {
        $post = get_post($item_id);
        $user = get_user_by('id', $post->post_author);
        return ['template_id' => $post->ID, 'source' => $this->get_id(), 'type' => get_post_meta($post->ID, self::TYPE_META_KEY, true), 'title' => $post->post_title, 'thumbnail' => get_the_post_thumbnail_url($post), 'date' => mysql2date(get_option('date_format'), $post->post_date), 'author' => $user->display_name, 'categories' => [], 'keywords' => [], 'export_link' => $this->_get_export_link($item_id), 'url' => get_permalink($post->ID)];
    }