I have a CHAT plugin for wordpress, I would like it to be active only when administrator (EDITOR, to be more precise) is online. When the admin is offline there’s no use to have a chat on the website, it only consume space.
I know little of PHP/Wordpress programming, but I’m almost sure some kind of code in Functions.php might solve the problem, something with admin_init, but it has to disable when admin logs off too.
Desired administration role to activate the plugin: Editor
Plugin name: Online Chat (online-chat/online-chat.php)
WordPress Version: 3.4.2
Thanks guys!! I’ll be around, trying to make it work here too
- The topic ‘Execute plugin if EDITOR is online’ is closed to new replies.