Execute plugin if EDITOR is online
-
The problem
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.
Possible Sulutions
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.
Conclusion
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
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Execute plugin if EDITOR is online’ is closed to new replies.