WordPress.org

Support

Support » Plugins and Hacks » Postie » [Resolved] Postie: category filter

[Resolved] Postie: category filter

  • I have a plugin that bind user to category (bind user to category). I’d like to integrate it, with postie filter.

    So I made some test and I create a filter to insert received post into a category. This is my test function:
    function auto_category($post){
    $cat = {‘RugbyCS Test’};
    $post[‘post_category’] = $cat;
    return ($post);
    }
    add_filter(‘postie_post’, ‘auto_category’);

    But after fetching email, that existing category is not set.
    I tried also with the category_id (instead of category string) but it doesn’t work.

    May you help me please?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I tried also:

    • $cat = {‘RugbyCS Test’};
      $post[‘post_category’] = $cat;
    • $cat = ‘RugbyCS Test’;
      $post[‘post_category’] = $cat;
    • $cat = {304};
      $post[‘post_category’] = $cat;
    • $cat = 304;
      $post[‘post_category’] = $cat;

    With no good results.

    SORRY for these thread. I had filterPostie.php deactivated: I didn’t know it is a plugin standalone. Now it works. ‘post_category’ must be an int array with category_ids.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Postie: category filter’ is closed to new replies.
Skip to toolbar