How can I add the “Use as featured image” to a custom metabox?
even if you had included the all of the needed files you will still have to create your some extra hidden fields like _nonce to pass the check_ajax_referer( “set_post_thumbnail-$post_ID” ); also you would need to create an action hidden field to identify the case of Ajax call with the value : “set-post-thumbnail” You are better … Read more