Permalink
Browse files

Feature / Allow add-ons to force a deferral of keyword processing unt…

…il later.
  • Loading branch information...
radgeek committed Jul 23, 2014
1 parent 65d35a5 commit f48063b10691c396293e52431d12cfe0dc94f362
Showing with 11 additions and 0 deletions.
  1. +11 −0 fwp-keyword-filters.php
View
@@ -150,6 +150,17 @@ function diagnostics ($diag, $page) {
}
function syndicated_entry ($entry, $obj) {
+ if (apply_filters('fwp_keyword_filters_defer_processing', false, $entry, $obj)) :
+ // Maybe we could do something cool here like recording
+ // the exact data from off the feed, etc. But for now...
+ FeedWordPress::diagnostic(
+ 'keyword_filters:scan',
+ "Deferring scan of item [${iGuid}] for keywords"
+ );
+
+ return $entry;
+ endif;
+
$mp = new fwpkfMatchablePost($obj);
$localKeys = maybe_unserialize($obj->link->setting(

0 comments on commit f48063b

Please sign in to comment.