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

If you like my WordPress work, check out my new plugin, Bylines. Thanks!

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.

Comments

  1. 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!

    1. 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.

      1. 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 ;).