Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/07/2017 08:27:00 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Topics: Introduce bbp_get_non_public_topic_statuses()

This new function returns the inverse post-statuses of bbp_get_public_topic_statuses() with a filter to help target them more specifically in places where it was not previously possible to do so.

See #3128.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/forums/functions.php

    r6607 r6644  
    16641664                'fields'         => 'ids',
    16651665                'post_parent'    => $forum_id,
    1666                 'post_status'    => array( bbp_get_trash_status_id(), bbp_get_spam_status_id(), bbp_get_pending_status_id() ),
     1666                'post_status'    => bbp_get_non_public_topic_statuses(),
    16671667                'post_type'      => bbp_get_topic_post_type(),
    16681668                'posts_per_page' => -1,
Note: See TracChangeset for help on using the changeset viewer.