Title: Adding standarized add_shortcode usage
Last modified: August 27, 2017

---

# Adding standarized add_shortcode usage

 *  [lwcorp](https://wordpress.org/support/users/lwcorp/)
 * (@lwcorp)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/adding-standarized-add_shortcode-usage/)
 * Your plugin filters content of posts and pages directly and not through standardized
   usage of add_shortcode. It means it can’t work in other areas of WP. For example,
   [this plugin’s special widget supports shortcodes, but only if they’re standard](https://wordpress.org/support/topic/some-shortcuts-dont-run-in-mla-text-widget/).
 * Using add_shortcode will probably also increase the likelihood of continued support
   in future WP versions.
 * So is there any chance you’ll do it? 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Janis Elsts](https://wordpress.org/support/users/whiteshadow/)
 * (@whiteshadow)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/adding-standarized-add_shortcode-usage/#post-9444826)
 * The plugin wouldn’t work if it used standard shortcodes.
 * The purpose of this plugin is to prevent WordPress and other plugins from changing(
   filtering) selected parts of a post or page. It’s impossible to do that with 
   a standard shortcode. Shortcode processing is part of the standard filter chain,
   and the only reason why you’d use this plugin is to _avoid_ the standard filters.
 * At the very least, you need a way to get the unfiltered content and a way to 
   re-insert it into the post after all filters have been applied. The plugin achieves
   this by using two filters with different priorities – one very high so that it
   runs before other filters, one very low so that it runs last. Shortcodes are 
   right in the middle.
 *  Thread Starter [lwcorp](https://wordpress.org/support/users/lwcorp/)
 * (@lwcorp)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/adding-standarized-add_shortcode-usage/#post-9444828)
 * Interesting. Is adding manual support to widgets an alternative?
 *  Plugin Author [Janis Elsts](https://wordpress.org/support/users/whiteshadow/)
 * (@whiteshadow)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/adding-standarized-add_shortcode-usage/#post-9446377)
 * Sure, that is a possibility.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Adding standarized add_shortcode usage’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/raw-html.svg)
 * [Raw HTML](https://wordpress.org/plugins/raw-html/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/raw-html/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/raw-html/)
 * [Active Topics](https://wordpress.org/support/plugin/raw-html/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/raw-html/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/raw-html/reviews/)

## Tags

 * [add_shortcode](https://wordpress.org/support/topic-tag/add_shortcode/)

 * 3 replies
 * 2 participants
 * Last reply from: [Janis Elsts](https://wordpress.org/support/users/whiteshadow/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/adding-standarized-add_shortcode-usage/#post-9446377)
 * Status: not a support question