Persist Data inside a Block
-
Hey Everyone, Ive got a quick question. I am working on a plugin that extends core blocks with some custom attributes and saves some metadata in said attributes.
Everything works fine and is saved to the DB as expected.
If now the Plugin is deactivated (e.g. due to a PHP error) and a user edits the page, the previously saved metadata in the custom attributes is lost due to the attributes no longer existing.Is there any way to save and permanently (or atleast for a longer time) persist some custom data within a block? I want to avoid data accidently getting lost due to an PHP error.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.