Title: Adding Feedback to Posts using Filters
Last modified: August 20, 2016

---

# Adding Feedback to Posts using Filters

 *  Resolved [troyward](https://wordpress.org/support/users/troyward/)
 * (@troyward)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-feedback-to-posts-using-filters/)
 * I am trying to add document feedback prompt to posts. I know there is a filter
   for that so I am trying to apply that filter using this in my theme’s functions.
   php file but it is not working. I think I am using the wrong syntax, can you 
   please provide an example of how to add posts?
 *     ```
       $feedback_post_types = array(
       'post',
       'page',
       );
       apply_filters('document_feedback_post_types', $feedback_post_types);
       ```
   
 * [http://wordpress.org/extend/plugins/document-feedback/](http://wordpress.org/extend/plugins/document-feedback/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Mario Peshev](https://wordpress.org/support/users/nofearinc/)
 * (@nofearinc)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/adding-feedback-to-posts-using-filters/#post-3428240)
 * The apply_filters is used for ‘applying’ added filters, so you need to add a 
   callback function with add_filter that returns your post types, more specifically:
 *     ```
       function your_document_feedback_post_types( $post_types ) {
           $feedback_post_types = array(
               'post',
               'page',
           );
   
           return $feedback_post_types;
       }
   
       add_filter( 'document_feedback_post_types', 'your_document_feedback_post_types' );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Adding Feedback to Posts using Filters’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/document-feedback.svg)
 * [Document Feedback](https://wordpress.org/plugins/document-feedback/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/document-feedback/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/document-feedback/)
 * [Active Topics](https://wordpress.org/support/plugin/document-feedback/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/document-feedback/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/document-feedback/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mario Peshev](https://wordpress.org/support/users/nofearinc/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/adding-feedback-to-posts-using-filters/#post-3428240)
 * Status: resolved