dmchale / disable-json-api

Public repo for the "Disable REST API" WordPress plugin, currently with 90,000+ active installs in the wordpress.org repository
10 stars 9 forks source link

Keep accordion status "sticky" #40

Open dmchale opened 2 years ago

dmchale commented 2 years ago

At the moment, every time you change screens (or save settings on a screen) all accordions default to Closed/collapsed

We should probably save something somewhere (cookie, data attached to the user in a WP option, something) to remember which top-level endpoints we last had open, so that they can STAY open after saving settings or when switching between different user roles when managing multiple roles in a single sitting