Viewing 1 replies (of 1 total)
  • I want this feature as well.

    I think this code present in function set_thumbnail will be helpful, so I’ll try implementing this, but it would be great if you provide a public function to do this.

    if ($thumbnail_id && get_post($thumbnail_id)) {
    	$thumbnail_html = wp_get_attachment_image($thumbnail_id, 'thumbnail');
    	if (!empty($thumbnail_html)) {
    		$this->set_meta($post_ID, $this->post_type, $this->id, $thumbnail_id);
    		die($this->post_thumbnail_html($thumbnail_id));
    	}
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Upload through frontend’ is closed to new replies.