Archived topic
Display a message to the screen when setting the featured image
1 reply · Started by Randy on June 7, 2021
Hello,
When I am creating/editing a post and set the featured image, I'd like to display a message to the screen if the file dimensions or size are below a certain threshold. The message is simply a reminder to myself if I am about to set a featured image that doesn't meet certain criteria. I need to do this BEFORE saving the post, ideally right after I set the featured image.
I couldn't determine which add_filter I would use in my child functions.php to display a message at this point.
Do you have a recommendation?
Thanks!
Randy
Hi Randy,
I'm not sure if there is a filter to do this unfortunately - it certainly wouldn't be coming from the theme.
The featured image option is a WordPress core option so you'd need to check with WordPress' support team to see if they point you in the right direction.
Hope this helps :)