WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#9983 closed enhancement (invalid)

filter for feed limits (like comment_feed_limits)

Reported by: neoxx Owned by: westi
Milestone: Priority: normal
Severity: normal Version: 2.8
Component: Feeds Keywords: reporter-feedback
Focuses: Cc:

Description

hi guys,

as i use my feeds to create a google map with my posts, comments, tags, etc., i always had to edit query.php to customize the size of my geo-feeds.

recently i figured out, that we now have a comment_feed_limits filter, which is applied in query.php. :) what do you think about an additional filter, which controls the size of our post feeds? i added a patch to the ticket...

greetz,
berny

Attachments (1)

9983.patch (439 bytes) - added by neoxx 5 years ago.
feed_limits filter

Download all attachments as: .zip

Change History (4)

neoxx5 years ago

feed_limits filter

comment:1 westi5 years ago

  • Keywords reporter-feedback added; feed rss atom filter has-patch removed
  • Milestone 2.8 deleted
  • Owner set to westi
  • Status changed from new to accepted

You can already use the following filters which run in get_option:

pre_option_posts_per_rss - to force to a particular value early on
option_posts_per_rss - to filter the stored value.

comment:2 neoxx5 years ago

hi westi,

thanks again for your quick reply. - i implemented the pre_option filter and it works like a charm. :)

greetz,
berny

comment:3 westi5 years ago

  • Resolution set to invalid
  • Status changed from accepted to closed

Good!

Note: See TracTickets for help on using tickets.