What hooks and filters are available in Feedzy

WordPress plugins can be very customizable and in this tutorial we will show you how to change certain features like: adding a read more link or displaying items in a random order.

Available Hooks

  • filter: feedzy_feed_items
  • 	apply_filters( 'feedzy_feed_items', $feed->get_items(), $feedURL );
    	

    Where:

    	$feed->get_items: Array of items from feeds.
    	$feedURL: The feed URL source/s.
    	
  • filter: feedzy_item_keyword
  • 	apply_filters( 'feedzy_item_keyword', true, $sc, $item, $feedURL );
    	

    Where:

    	$sc: The short code attributes.
    	$item: an item from The feed items array.
    	$feedURL: The feed URL source/s.
    	
  • filter: feedzy_thumb_output
  • 	apply_filters( 'feedzy_thumb_output', $contentThumb, $feedURL, $sizes );
    	

    Where:

    	$contentThum: The content's Thumbnail.
    	$item: an item from The feed items array.
    	$sizes: Thumbnail's dimensions.
    	
  • filter: feedzy_title_output
  • 	apply_filters( 'feedzy_title_output', $contentTitle, $feedURL );
    	

    Where:

    	$contentTitle: The content's title.
    	$feedURL: The feed URL source/s.
    	
  • filter: feedzy_meta_args
  • 	apply_filters( 'feedzy_meta_args', $metaArgs, $feedURL );
    	

    Where:

    	$metaArgs: Arguments array.
    	$feedURL: The feed URL source/s.
    	
  • filter: feedzy_meta_output
  • 	apply_filters( 'feedzy_meta_output', $contentMeta, $feedURL );
    	

    Where:

    	$contentMeta: Content's Metadata (Array).
    	$feedURL: The feed URL source/s.
    	
  • filter: feedzy_summary_input
  • 	apply_filters( 'feedzy_summary_input', $description, $content, $feedURL );
    	

    Where:

    	$description: The feed description.
    	$content: The feed description.
    	$feedURL: The feed URL source/s.
    	
  • filter: feedzy_summary_output
  • 	apply_filters( 'feedzy_summary_output', $contentSummary, $newLink, $feedURL );
    	

    Where:

    	$newLink: Link to the item.
    	$contentSummary: The feed description summary.
    	$feedURL: The feed URL source/s.
    	
  • filter: feedzy_global_output
  • 	apply_filters( 'feedzy_global_output', $content, $sc, $feed_title, $feed_items );
    	

    Where:

    	$content: The feed description.
    	$sc: The short code attributes.
    	$feed_title: The title of the feed.
    	$feed_items: Array of items in feed.
    	
  • filter: feedzy_thumb_sizes
  • 	apply_filters( 'feedzy_thumb_sizes', $sizes, $feedURL );
    	

    Where:

    	$sizes: Thumbnail dimension
    	$feedURL: The feed URL source/s.
    	
  • filter: feedzy_feed_blacklist_images
  • 	apply_filters( 'feedzy_feed_blacklist_images', $blacklist );
    	

    Where:

    	$blacklist: Array of blacklisted images.
    	
  • filter: feedzy_default_image
  • 	apply_filters( 'feedzy_default_image', $sc, $feedURL );
    	

    Where:

    	$sc: The short code attributes.
    	$feedURL: The feed URL source/s.
    	
  • filter: feedzy_feed_timestamp
  • 	apply_filters( 'feedzy_feed_timestamp', $date_time, $feedURL );
    	

    Where:

    	$date_time: The current time.
    	$feedURL: The feed URL source/s.
    	
  • filter: feedzy_default_error
  • 	apply_filters( 'feedzy_default_error', $error, $feedURL );
    	

    Where:

    	$error: The error Object.
    	$feedURL: The feed URL source/s.
    	
  • filter: feedzy_author_url
  • 	apply_filters( 'feedzy_author_url', $authorURL, $authorName, $feedURL );
    	

    Where:

    	$authorURL: Link to the feed author's articles.
    	$authorName: Feed author's name.
    	$feedURL: The feed URL source/s.
    	
  • filter: shortcode_atts_feedzy_default
  • 	apply_filters( 'feedzy_author_url', $sc, $feedURL );
    	

    Where:

    	$sc: The short code attributes.
    	$feedURL: The feed URL source/s.
    	
  • native filter: wp_feed_cache_transient_lifetime
  • 	apply_filters( 'wp_feed_cache_transient_lifetime', $cache_time, $feedURL )
    	

    Where:

    	$cache_time: For how long to cache the feed results.
    	$feedURL: The feed URL source/s.
    	

Note: the $feedURL argument (variable which contains the displayed feed URL) is available for every hooks, but is always optional. Use it for more targeted tweaks.