how to reset metabox excerpt to open

By default, WordPress saves the open/close state of these metaboxes each time you toggle it. This is done via javascript, requesting an ajax endpoint on the server.

You need to find out if that request is still send or not. If it’s not send (e.g. javascript error, blocked by some plugin), then you found the cause.

If it is send, you need to find out if the new state is successfully stored inside the database. If it is not stored inside the database, you found the cause.

If it is stored into the database, you need to find out if it is read out of the database. If it is not read out of the database, then you found the cause.

If it is read out of the database you need to find out if it get’s correctly applied as the metabox class either via the pages response or via some additional javascript / ajax hook. I don’t remember from mind if there is something like the latter as well. If not, you found the cause.

If it does, well then I have no additional idea what the cause of the error might be right away, but I’m pretty sure if you debug it that far, you found the cause 😉

More information is available here: