Closed TachafineAittoudaWebpick closed 2 years ago
Thank you for reporting this, @TachafineAittoudaWebpick
Are you still able to reproduce this problem? If so, do you have any suggestion on how we could solve this?
Thank you!
@TachafineAittoudaWebpick Checking in again to see whether you can still replicate with the latest version of WordPress, and whether you have any thoughts on a fix. Thanks!
This issue was reviewed in today's Editor Bug Scrub. It was determined that this is actually expected behavior with metaboxes. Most metabox implementations will not dynamically change the content in the Editor, and will only appear on a page refresh as you indicated. We understand of course that this does not resolve the issue you are having, but there are no current plans that we are aware of that will remedy this situation. Therefore, I am going to close this issue, but feel free to reopen if you want to propose an alternative solution and/or PR.
In the meantime. I wanted to share some resources for WordPress Core Data and the SlotFill Reference. These are great alternative methods for updating data and implementing UI that would allow for dynamic changes within the Editor.
Description
The categories block isn't updated after saving the metaboxes, i have save_post hooks depending on the metabox content (checkbox) to add a specific category to the post. the save_post hook is applied but the editor doesn't update the categories in the front-end
Step-by-step reproduction instructions
I was tracing the requests in the network after clicking on the update post button , and they go in the following order :
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes