Skip to content

Configurable Default Filter for Snippets List #330

@CarolinaOP

Description

@CarolinaOP

Is your feature request related to a problem? Please describe

On sites with many snippets, it would be useful to have a configurable default filter for the Snippets list screen (Active / All / Inactive). Currently, the list always loads in the “All” view, which makes it harder to quickly see what code is actively running.

Describe the solution you'd like

Add a setting (ideally via WordPress Screen Options or a simple plugin setting) such as:

Default Snippets View:

  • Active
  • All
  • Inactive

The selected option would control the initial filter when visiting the Snippets admin page. Manual switching between filters should continue to work as it does now.

Why This Is Useful

  • On production sites, administrators usually care most about active snippets
  • Reduces cognitive load and risk during maintenance or troubleshooting
  • Aligns with standard WordPress UI patterns (Screen Options / per-user preferences)
  • Especially helpful for agencies and power users managing large snippet libraries

Describe alternatives you've considered

No response

Additional context

Archived or old snippets often can’t be deleted for reference purposes, making a default “Active” view particularly valuable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions