Skip to content
Snippets Groups Projects
Commit 7ac7e1b5 authored by vgfitzger's avatar vgfitzger
Browse files

Pass the simple pie item along to the filter to grab additional data

parent b3b21c55
Branches
Tags
No related merge requests found
......@@ -180,7 +180,7 @@ class Syndication_WP_RSS_Client extends SimplePie implements Syndication_Client
'post_guid' => $item->get_id()
);
// This filter can be used to exclude or alter posts during a pull import
$post = apply_filters( 'syn_rss_pull_filter_post', $post, $args );
$post = apply_filters( 'syn_rss_pull_filter_post', $post, $args, $item );
if ( false === $post )
continue;
$posts[] = $post;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment