diff --git a/src/classes/surrogate-key-collection.php b/src/classes/surrogate-key-collection.php index 503522a..514ed32 100644 --- a/src/classes/surrogate-key-collection.php +++ b/src/classes/surrogate-key-collection.php @@ -230,11 +230,15 @@ private function _add_key_terms_taxonomy() */ private function _add_key_author($post) { - $author = absint($post->post_author); + $authors = array(absint($post->post_author)); + $authors = apply_filters('purgely_post_authors', $authors, $post); + $key = array(); - if ($author > 0) { - $key[] = 'a-' . absint($author); + foreach ($authors as $author) { + if ($author > 0) { + $key[] = 'a-' . absint($author); + } } return $key;