WordPress.org

Ready to get started?Download WordPress

Forums

Arguments to the_posts filter (1 post)

  1. jammycakes
    Member
    Posted 7 years ago #

    Can anyone shed any light on this?

    As far as I can tell, the the_posts filter receives as its argument an array containing the posts returned for display by the query. My WordPress plugin, Comment Timeout, uses this filter to close comments on old posts.

    However I have had a small number of users reporting an error message that indicates that something other than an array is being passed to this filter.

    Under what circumstances is this likely to happen, if any? Should I suspect an incompatibility with another misbehaving plugin or am I overlooking something?

Topic Closed

This topic has been closed to new replies.

About this Topic