Title: Post status
Last modified: August 21, 2016

---

# Post status

 *  Resolved [chicchera](https://wordpress.org/support/users/chicchera/)
 * (@chicchera)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/post-status/)
 * ¡Excelente plugin!
 * Just a quickie. I would like to import feeds as Pending Review: how do I go about
   it?
 * thanks a lot
 * [http://wordpress.org/plugins/wpematico/](http://wordpress.org/plugins/wpematico/)

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

 *  Thread Starter [chicchera](https://wordpress.org/support/users/chicchera/)
 * (@chicchera)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/post-status/#post-4195002)
 * I answered myself. The solution is to add an action as follows:
 *     ```
       /////////////////////////////////////////////////////////////
       // filter to change the status of RSS posts imported by
       // wpematico
       function chg_rss_post_status($post_id){
         // check if it is the correct type of post
         // in my case posts are added to post type rss-post
         if(get_post_type( $post_id ) == "rss-post") {
           // check if is not a revision to avoid an endless loop
           // this action works only on brand new records
           if(!wp_is_post_revision($post_id)) {
             // unhook the action so it doesn't trigger
             // an endless loop
             remove_action('save_post','chg_rss_post_status');
             // do whatever you have to do
             // in this case change the post status
             $post_changes = array(
               'ID' => $post_id,
               'post_status' => 'pending'
               );
             wp_update_post($post_changes);
             // rehook the function
             add_action('save_post','chg_rss_post_status');
           }
         }
       }
       add_action('save_post','chg_rss_post_status');
       /////////////////////////////////////////////////////////////
       ```
   
 * The same idea can be extended to deal with automatic tags more finely tuned than
   the original program, by keyword contained in the title, or to change the post
   type.
 * Hope this helps
 *  Thread Starter [chicchera](https://wordpress.org/support/users/chicchera/)
 * (@chicchera)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/post-status/#post-4195003)
 * forgot to tick it as solved
 *  Plugin Author [etruel](https://wordpress.org/support/users/etruel/)
 * (@etruel)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/post-status/#post-4195096)
 * thanks, chicchera, very useful
    next version will include all wordpress post 
   status

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

The topic ‘Post status’ is closed to new replies.

 * ![](https://ps.w.org/wpematico/assets/icon-256x256.jpg?rev=2757072)
 * [WPeMatico RSS Feed Fetcher](https://wordpress.org/plugins/wpematico/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpematico/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpematico/)
 * [Active Topics](https://wordpress.org/support/plugin/wpematico/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpematico/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpematico/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [etruel](https://wordpress.org/support/users/etruel/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/post-status/#post-4195096)
 * Status: resolved