Title: create a non echo version
Last modified: August 22, 2016

---

# create a non echo version

 *  Resolved [Ash](https://wordpress.org/support/users/ashmetry/)
 * (@ashmetry)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/create-a-non-echo-version/)
 * In the code you only have
 *     ```
       function the_author_image($author_id = null) {
       	echo author_image::get($author_id, null);
       }
       ```
   
 * You should add
 *     ```
       function get_author_image($author_id = null) {
       	return author_image::get($author_id, null);
       }
       ```
   
 * Where I need it, I want to return a string. I’m not ready for it to echo yet.
 * [https://wordpress.org/plugins/sem-author-image/](https://wordpress.org/plugins/sem-author-image/)

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

 *  [OutThisLife](https://wordpress.org/support/users/outthislife/)
 * (@outthislife)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/create-a-non-echo-version/#post-5631170)
 * You can just use ob_start() and ob_get_clean() in a closure to do this yourself.
 *  Plugin Author [Mike Koepke](https://wordpress.org/support/users/mike_koepke/)
 * (@mike_koepke)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/create-a-non-echo-version/#post-5631185)
 * Actually this makes sense. I added it to release 4.9+

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

The topic ‘create a non echo version’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sem-author-image.svg)
 * [Author Image](https://wordpress.org/plugins/sem-author-image/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sem-author-image/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sem-author-image/)
 * [Active Topics](https://wordpress.org/support/plugin/sem-author-image/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sem-author-image/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sem-author-image/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Mike Koepke](https://wordpress.org/support/users/mike_koepke/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/create-a-non-echo-version/#post-5631185)
 * Status: resolved