Quantcast
Channel: Trigger JS in custom meta box if a featured image is loaded/exists - WordPress Development Stack Exchange
Browsing all 3 articles
Browse latest View live

Answer by Cai for Trigger JS in custom meta box if a featured image is...

I couldn't find any WP specific event to hook in to. What you can do is set up an observer with a callback to respond to DOM changes using MutationObserver and check if the your featured image has been...

View Article



Answer by Mark Kaplun for Trigger JS in custom meta box if a featured image...

Very broad solution.There are two problems you are facingthere are different HTML generated by the server based on if there is a featured imageMeta box are just a UI artifact of post editing and are...

View Article

Trigger JS in custom meta box if a featured image is loaded/exists

Playing with WordPress customization I created a meta box with several others that report back details of the post. One meta box evaluates the featured image but I am having trouble figuring out how to...

View Article
Browsing all 3 articles
Browse latest View live


Latest Images