Title: Processing shortcodes in output
Last modified: August 21, 2016

---

# Processing shortcodes in output

 *  [fpg](https://wordpress.org/support/users/fpg/)
 * (@fpg)
 * [13 years ago](https://wordpress.org/support/topic/processing-shortcodes-in-output/)
 * Hello All,
 * I needed this plugin to be able to process shortcodes in the restriction message.
   I hate to directly edit plugins, but I didn’t find a quick way to get my shortcodes
   working, so I made a small tweak. In order to process shortcodes, go to line 
   93 of the pagerestrict/pagerestrict.php file.
 * Change:
    `return '<div class="page-restrict-output">' . $pr_page_content . '</
   div>';`
 * to this:
    `return '<div class="page-restrict-output">' . do_shortcode($pr_page_content).'
   </div>';`
 * It would be great if the developer could add slip this in the next release!
 * Thanks!
 * [http://wordpress.org/extend/plugins/pagerestrict/](http://wordpress.org/extend/plugins/pagerestrict/)

The topic ‘Processing shortcodes in output’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pagerestrict.svg)
 * [Page Restrict](https://wordpress.org/plugins/pagerestrict/)
 * [Support Threads](https://wordpress.org/support/plugin/pagerestrict/)
 * [Active Topics](https://wordpress.org/support/plugin/pagerestrict/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pagerestrict/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pagerestrict/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [page restrict](https://wordpress.org/support/topic-tag/page-restrict/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 0 replies
 * 1 participant
 * Last reply from: [fpg](https://wordpress.org/support/users/fpg/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/processing-shortcodes-in-output/)
 * Status: not resolved