Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    Looks like Cindy answered your question. However, I would make the following changes:

    function my_postie_post_function($post) {
    
      add_post_meta($post['ID'], '_status', 0);
      add_post_meta($post['ID'], '_priority', 1); 
    
    }
    
    add_action('postie_post_after', 'my_postie_post_function');
    Thread Starter Paul Barthmaier (pbrocks)

    (@pbarthmaier)

    Thanks, Wayne. The above is very similar to what I did, save one line. Are you saying that I shouldn’t return the post?

    Plugin Author Wayne Allen

    (@wayneallen-1)

    postie_post_after is an action not a filter so you should call add_action and not return anything.

    Thread Starter Paul Barthmaier (pbrocks)

    (@pbarthmaier)

    Thank you, sir!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cleveness ToDo not showing’ is closed to new replies.