P2 Resolved Posts
[resolved] Automatically mark SPECIFIC post format(s) as "unresolved" (4 posts)

  1. noamdesign
    Posted 3 years ago #

    There's a very useful filter to automatically mark new posts as unresolved by adding add_filter( 'p2_resolved_posts_mark_new_as_unresolved', '__return_true' ); to the theme's functions.php and that works perfectly.

    But how about excluding some post formats? Say for example that I only want to automatically mark standard posts as unresolved? And not quotes, links, and status updates.

    Has anyone successfully used the p2_resolved_posts_maybe_mark_new_as_unresolved filter? If so how exactly?

    Any help is greatly appreciated! Thanks in advance!


  2. noamdesign
    Posted 3 years ago #

    Anyone? Any help would be greatly appreciated!

    Thanks in advance ;)

  3. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 3 years ago #

    This should work for you:

    add_filter( 'p2_resolved_posts_maybe_mark_new_as_unresolved', 'p2x_mark_posts_unresolved', 10, 2 );
    function p2x_mark_posts_unresolved( $mark_unresolved, $post ) {
    if ( 'post' == $_POST['post_format'] )
    return true;
    return false;

    You can create an mu-plugin or standalone plugin for it.

  4. mokelabs
    Posted 3 years ago #

    love the plugin. Was wondering if there was a way that it could change to "Resolved" and auto update for everyone and not just the person who clicked "Resolved."


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • P2 Resolved Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.