Comments Feed & Custom Post Statuses

Found the filter: comment_feed_where to filter the WHERE clause, which by default only looks for posts with status = publish.

function comment_feed_where_status($where) {
        return str_replace(
                "post_status="publish"",
                "post_status="publish" OR post_status="resolved" OR post_status="unresolved"",
                $one);
}
add_filter('comment_feed_where', __NAMESPACE__ . '\\comment_feed_where_status');

I found this by debugging with “SAVEQUERIES” enabled and dumping the queries array on the feed page.

Leave a Comment

deneme bonusu veren sitelerbahis siteleripulibet girişdeneme bonusutürkçe altyazılı pornocanlı bahis casinocanlı bahis casino siteleriOnwin Güncel Girişholiganbetholiganbet girişholiganbet güncel girişnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnews