Title: Can comment_form() be returned??
Last modified: August 20, 2016

---

# Can comment_form() be returned??

 *  [g_force](https://wordpress.org/support/users/g_force/)
 * (@g_force)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/can-comment_form-be-returned/)
 * Can the function comment_form() be returned rather than echoed?? – I would like
   to put it in a collapsible div.
 * This looks at the problem but without this particular function:
    [http://wordpress.org/support/topic/echo-vs-return](http://wordpress.org/support/topic/echo-vs-return)
 * Word to WordPress
    _

The topic ‘Can comment_form() be returned??’ is closed to new replies.

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)
 * [comment_form](https://wordpress.org/support/topic-tag/comment_form/)
 * [return](https://wordpress.org/support/topic-tag/return/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [g_force](https://wordpress.org/support/users/g_force/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/can-comment_form-be-returned/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
