Title: [Plugin: Notifly] remove comment email
Last modified: August 19, 2016

---

# [Plugin: Notifly] remove comment email

 *  [micharo](https://wordpress.org/support/users/micharo/)
 * (@micharo)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-notifly-remove-comment-email/)
 * I would like to send an email only when I publish a post, but not for each comment.
 * I put the following code into the function.php
 *     ```
       global $notifly;
       remove_action('comment_post', array( $notifly, 'comment_email' ), 10, 2 );
       ```
   
 * But this does not work.
    Why?

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

 *  Thread Starter [micharo](https://wordpress.org/support/users/micharo/)
 * (@micharo)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-notifly-remove-comment-email/#post-1715015)
 * Actually it works for me! There was a different problem which cuased this code
   not to work.
 * I hope this others!
    Micharo
 *  [thatwastaxing](https://wordpress.org/support/users/thatwastaxing/)
 * (@thatwastaxing)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-notifly-remove-comment-email/#post-1715071)
 * I hope to see this built in a future version of Notifly. Ideally, we could turn
   off/on comment notification via admin.

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

The topic ‘[Plugin: Notifly] remove comment email’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [thatwastaxing](https://wordpress.org/support/users/thatwastaxing/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-notifly-remove-comment-email/#post-1715071)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
