P2 Resolved Posts v0.2: Mark new as unresolved and audit log

P2 Resolved Posts is a nifty plugin we use at Automattic, in conjunction with the stellar P2 theme, to help ensure decisions aren’t left hanging and things get done. This second formal release of the plugin incorporates the following:

  • Automatically mark new posts as unresolved by adding add_filter( 'p2_resolved_posts_mark_new_as_unresolved', '__return_true' ); to your theme’s functions.php. Thanks macmeister for the request.
  • Audit log records who changes the post state and when they change it. View the audit log by hovering over the action link.
  • wp-cli command for the plugin includes a subcommand for programmatically changing the state of a post.
  • Includes a POT file for localization. Translations welcome!
  • Displays an error notice if you’ve activated the plugin but P2 isn’t the currently active theme.

Fork the plugin on Github. In particular, I’d love to see an interface for assigning a post to yourself. Please post any feedback, issues, feature requests, etc. in the WordPress.org forums.

10 Comments

Noam July 30, 2012 Reply

Any way to apply this only to specific post-types? i.e. “post” but not to quotes, links, etc… Or alternatively to exclude specific post types from being automatically marked as “unresolved”?

Thanks a lot in advance!

Daniel Bachhuber July 30, 2012 Reply

Yep, totally doable. There’s a filter called ‘p2_resolved_posts_maybe_mark_new_as_unresolved’ that’s passed the entire post object. You can inspect the post object on the filter and return false if you don’t want a particular post (or post format) marked as unresolved.

noamdesign July 31, 2012 Reply

Man – I tried everything but it’s not working for me! How exactly would you implement that? Say for example that I only want to automatically mark standard posts as unresolved?

Your help is greatly appreciated! Thanks in advance ;).

Daniel Bachhuber July 31, 2012 Reply

Mind posting a new thread in the WordPress.org forums with the code you’re trying?

http://wordpress.org/support/plugin/p2-resolved-posts

I’d be happy to take a look when I have a moment.

noamdesign August 1, 2012 Reply

Done: http://wordpress.org/support/topic/plugin-p2-resolved-posts-automatically-mark-specific-post-formats-as-unresolved?replies=1#post-3032862

Sorry I didn’t post in the forums to start with instead of commenting here ;).

Thanks for an awesome and very useful plugin!

noamdesign August 8, 2012 Reply

Hey Daniel – any chance you could help me out with this? I would REALLY appreciate it! I’m sure for you it’s just a matter of a minute or 2 ;):

http://wordpress.org/support/topic/plugin-p2-resolved-posts-automatically-mark-specific-post-formats-as-unresolved

Daniel Bachhuber August 8, 2012 Reply

Yep, I’ll try to take a look tomorrow

noamdesign August 9, 2012 Reply

thank you very much! i really appreciate it.

Leave a Reply