WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. noamdesign
    Member
    Posted 1 year 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!

    http://wordpress.org/extend/plugins/p2-resolved-posts/

  2. noamdesign
    Member
    Posted 1 year ago #

    Anyone? Any help would be greatly appreciated!

    Thanks in advance ;)

  3. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year 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;
    else
    return false;
    }

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

  4. mokelabs
    Member
    Posted 9 months 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."

    Mahalo

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.