Wordpress - Set featured image if nothing is selected

/ Published in: PHP
Save to your folder(s)

If a post is published without setting a featured image and there is an image attachment, this will select an image from the media library and set it as the featured image.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.