Viewing 1 replies (of 1 total)
  • Hi,
    Something like this should work :

    function bweb_feedzy_feed_item_author( $continue, $keywords_title, $item, $feedURL ){
        if( 'https://b-website.com/feed' == $feedURL ) {
            $continue = false;
            $keywords_content = array( 'author-1', 'author-2' );
            foreach ( $keywords_content as $keyword ) {
                if ( strpos( $item->get_author(), $keyword ) !== false ) {
                    $continue = true;
                }
            }
        }
        return $continue;
    }
    add_filter('feedzy_item_keyword', 'bweb_feedzy_feed_item_author', 9, 4);

    Sorry but I didn’t tested it.
    Check the Hooks documentation page

    Cheers

Viewing 1 replies (of 1 total)
  • The topic ‘Display by author keyword?’ is closed to new replies.