GithubHelp home page GithubHelp logo

cedaro / plugin-toggle Goto Github PK

View Code? Open in Web Editor NEW
31.0 31.0 2.0 63 KB

A WordPress plugin to quickly toggle plugin activation status from the toolbar.

CSS 8.58% JavaScript 3.73% PHP 77.12% Shell 10.57%
wordpress wordpress-plugin

plugin-toggle's People

Contributors

bradyvercher avatar garyjones avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

plugin-toggle's Issues

Filtered list of active plugins

So I have bit of an edge case from hell. :) I am filtering additional plugins into list of active plugins, conditionally on a theme being loaded.

Plugin doesn't notice this, since list is cached in the transient and plugins page in admin wasn't visited.

Valid bug? So edge case it's my own problem? :)

Switch to CSS columns to list plugins vertically

I vaguely recall looking into listing plugins vertically in the past, but I'm not sure CSS columns were widely supported when this was originally released. This recent request reminded me to look into it. Browser support appears to be good enough to give it a shot again.

Personally, I find it easier to scan and locate a plugin with them listed vertically. It should also help keep the list from being disrupted as much when plugins are added or removed.

Fatal error: PluginToggle_Toolbar::add_group()

I am getting this error when I activated the plugin.

Fatal error: Call to undefined method PluginToggle_Toolbar::add_group() in /home/sites/grappler.tk/public_html/beta/wp-includes/admin-bar.php on line 738

Update
I think it is so because I did not activate the Debug Bar plugin before.
It happen even if the Debug Bar plugin is installed. This is in version 1.1.0

Thoughts on using ajax?

First off, great plugin, can't count how much time I waste just waiting on plugins page to load, then scrolling to find the plugin.

What do you think about using Ajax instead of directing to the plugins page? Either way i'll probably end up forking it and adding that feature in, just wanted to get your thoughts on it?

Thanks again, this is now added to my toolbox of plugins!

Make plugins list into immutable objects.

At the moment, when the plugins are grabbed to populate the transient, only the file name and plugin name are stored in the transient, and those values are given back as an associative array.

That means on each page load, the admin bar forces a check on each and every plugin to see if it is active or not. I'd like to see this active / deactive status stored within the transient, and the transient cleared / refreshed when a plugin is activated or deactivated.

With three bits of data, that then leads on to thinking about each plugin entry on the toolbar as an immutable object, containing properties of the file name, plugin name, and status. The class that the objects are derived from would then contain methods that can generate the relevant plugin toggle URL, whether it is a network related plugin, etc. This starts moving this plugin-toggle plugin to be a bit more OOP, since the methods are specific to the plugin entries, not this plugin functionality as a whole.

This would leave the transient as an indexed array of objects.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.