Shortcodes in WordPress comments, BuddyPress activities, bbPress topics and replies are disabled as default.
For example, let’s say you have a calendar plugin that produces a browsable calendar, which you embed to a page with a shortcode. What if you want to publish this calendar in a sticky topic in a forum? The shortcode will not evaluated, so you will just see literally the shortcode…
DV Shortcode Whitelist plugin allows you to enable the shortcodes in these fields with ease. You can enable all shortcodes or create whitelists to allow specific shortcodes.
Also you can enable the shortcodes for specific user roles or capabilities. For example, you can only allow site admins and forum moderators to use shortcodes.
Easy to use plugin settings allow you to enable or disable everything separately in a few clicks.
- Upload the plugin package to the plugins directory.
- Login to the dashboard and activate the plugin.
- Go to your the plugin’s settings page and set up the plugin
閱讀全部 3 則使用者評論
Allows me to add shortcodes to bbpress safely.
Excellent job. Thanks
I was looking everywhere for this. "User Shortcuts" is what I googled and "buddypress user based shortcodes" but got nothing.
I went on Buddypress.org and asked for support as these searches returned many results that did not do what this plugin does. They told me it couldn't be done. I started asking about hooks, and started researching hooks when I cam across another (out of date) plugin when I ran into this!
Thanks Guys/Gals, Ive tried it out and it does EXACTLY what I want it to do. I need to create a shortcut for it to use, then present my users with that shortcut. Perfect! Now, I can update this information as we want without having to update the pages! Woot!
Very Cool! Thanks!
I admit, that I gave the idea of this plugin to egemenerd. It was just like they put into the description! I had created a bbPress forum (using a theme by egemenerd) and wanted to allow some shortcodes for my users. Since there wasn't such a feature in the theme, I began to google and found a lot of examples, where you allow all shortcodes in forums. But allowing all shortcodes poses a big security risk, that's why they are disabled in the first place.
What I ended up doing, was a combination of a user role plugin and my custom code. It works, but is no way a layman's solution. This "DV Shortcode Whitelist" just makes it a hell of a lot easier for everyone!
以下人員參與了開源軟體〈DV Shortcode Whitelist〉的開發相關工作。參與者