Title: Shortcodes should return not echo
Last modified: August 21, 2016

---

# Shortcodes should return not echo

 *  [James Collins](https://wordpress.org/support/users/jamescollins/)
 * (@jamescollins)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/shortcodes-should-return-not-echo/)
 * Hi, thanks for the simple plugin.
 * It works great, apart from one problem: your functions echo instead of return.
 * [http://codex.wordpress.org/Function_Reference/add_shortcode#Notes](http://codex.wordpress.org/Function_Reference/add_shortcode#Notes)
   `
   Note that the function called by the shortcode should never produce output of
   any kind. Shortcode functions should return the text that is to be used to replace
   the shortcode.`
 * Could this please be fixed?
 * Thank you.
 * [https://wordpress.org/plugins/logout-button/](https://wordpress.org/plugins/logout-button/)

The topic ‘Shortcodes should return not echo’ is closed to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [James Collins](https://wordpress.org/support/users/jamescollins/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/shortcodes-should-return-not-echo/)
 * Status: not resolved