I've created a meta box using add_meta_boxes action and it works when I open any post to edit it.

add_action('add_meta_boxes', function() {

When WP auto saves the post, or when I click on save as draft or even when I publish it, I see a small loading icon on the meta box header. The debug breakpoint also proves to me that this add_meta_box function is being called on any saving action. Ok, that's great for what I need, but the thing is: the meta box HTML is not updated when the loading icon vanishes.

Is there anything I can do to allow WP to reload the meta box contents after any saving operation or the only way is by reloading (F5) the page?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.