Skip to content

Commit

Permalink
Feature / Allow add-ons to force a deferral of keyword processing unt…
Browse files Browse the repository at this point in the history
…il later.
  • Loading branch information
radgeek committed Jul 23, 2014
1 parent 65d35a5 commit f48063b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions fwp-keyword-filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f48063b

Please sign in to comment.