Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset values in wp_persisted_preferences (or full reset?) #34

Open
joemaller opened this issue Jan 11, 2023 · 1 comment
Open

Reset values in wp_persisted_preferences (or full reset?) #34

joemaller opened this issue Jan 11, 2023 · 1 comment
Assignees

Comments

@joemaller
Copy link
Member

These seem to be saved from the block editor, it's a big tree of miscellaneous settings. Should we selectively reset values in here or just remove everything so users get the fresh-start "Welcome to the Block Editor" experience?

One very specific problem area is inactivePanels since it breaks our interfaces and is difficult to find. (Block Editor action-kebab menu -> Preferences -> Panels)

Here's a sample with a hidden ACF Field Group:

{
  "core/edit-site": { "welcomeGuide": false },
  "_modified": "2023-01-11T16:50:22.224Z",
  "core/edit-post": {
    "isComplementaryAreaVisible": true,
    "welcomeGuide": false,
    "editorMode": "visual",
    "isPublishSidebarEnabled": false,
    "openPanels": [
      "taxonomy-panel-role",
      "post-status",
      "taxonomy-panel-group",
      "page-attributes"
    ],
    "hiddenBlockTypes": [],
    "inactivePanels": ["meta-box-acf-group_611eb4562da8b"],
    "focusMode": false
  }
}
@joemaller joemaller self-assigned this Jan 11, 2023
@joemaller
Copy link
Member Author

ugh. These are cached, so removing the entry from user_meta doesn't take effect immediately. Not sure where.

Dump values with this: get_user_meta(get_current_user_id(), 'wp_persisted_preferences', true);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant