jquery - Set Featured Image Grab Image ID or Image File Name

admin2025-01-07  7

Is there way of to grabbing "Image ID" or "Image File Name" after attaching a featured image (post-thumbnail) to page?

I am looking to capture that ID so that I can validate the image before posting the page.

I am using wp_insert_post_data for validation and unfortunately, it does not validate the newly attached images. If I had the ID, I can.

I am stumped on how to retrieve it and add it to input field. Any advice, much appreciated.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736265053a1015.html

最新回复(0)