What actions 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 random order.
Available Actions
- feedzy_modify_feed_config
do_action( 'feedzy_modify_feed_config', $feed);Where:
$feed: The SimplePie feed object.- feedzy_pre_http_setup
do_action( 'feedzy_pre_http_setup', $feedURL );Where:
$feedURL: The feed URL source/s.- feedzy_post_http_teardown
do_action( 'feedzy_post_http_teardown', $feedURL );Where:
$feedURL: The feed URL source/s.Available Filters
- feedzy_content
apply_filters( 'feedzy_content', $content, $item);Where:
$content: The content of the current item.
$item: The SimplePie_Item object- feedzy_feed_items
apply_filters( 'feedzy_feed_items', $items, $feedURL );Where:
$items: Array of items from feeds.
$feedURL: The feed URL source/s.- feedzy_item_keyword
apply_filters( 'feedzy_item_keyword', true, $sc, $item, $feedURL, $index );Where:
$sc: The short code attributes.
$item: An item from The feed items array.
$feedURL: The feed URL source/s.
$index: The index of the current item.- feedzy_thumb_output
apply_filters( 'feedzy_thumb_output', $contentThumb, $feedURL, $sizes, $item );Where:
$contentThumb: The content's Thumbnail.
$feedURL: The feed URL source/s.
$sizes: Thumbnail's dimensions.
$item: An item from The feed items array.- feedzy_title_output
apply_filters( 'feedzy_title_output', $contentTitle, $feedURL, $item );Where:
$contentTitle: The content's title.
$feedURL: The feed URL source/s.
$item: An item from The feed items array.- feedzy_meta_args
apply_filters( 'feedzy_meta_args', $metaArgs, $feedURL, $item );Where:
$metaArgs: Arguments array.
$feedURL: The feed URL source/s.
$item: An item from The feed items array.- feedzy_meta_output
apply_filters( 'feedzy_meta_output', $contentMeta, $feedURL, $item, $contentMetaValues, $metaOrder );Where:
$contentMeta: Content's Metadata (Array).
$feedURL: The feed URL source/s.
$item: An item from The feed items array.
$contentMetaValues: The individual meta values (author, date, time, and so on).
$metaOrder: The order in which the meta fields are displayed.- feedzy_summary_input
apply_filters( 'feedzy_summary_input', $description, $content, $feedURL, $item );Where:
$description: The feed description.
$content: The content of the feed.
$feedURL: The feed URL source/s.
$item: An item from The feed items array.- feedzy_summary_output
apply_filters( 'feedzy_summary_output', $contentSummary, $newLink, $feedURL, $item );Where:
$newLink: Link to the item.
$contentSummary: The feed description summary.
$feedURL: The feed URL source/s.
$item: An item from The feed items array.- 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.- feedzy_thumb_sizes
apply_filters( 'feedzy_thumb_sizes', $sizes, $feedURL );Where:
$sizes: Thumbnail dimensions.
$feedURL: The feed URL source/s.- feedzy_feed_blacklist_images
apply_filters( 'feedzy_feed_blacklist_images', $blacklist );Where:
$blacklist: Array of blacklisted images.- feedzy_default_image
apply_filters( 'feedzy_default_image', $sc['default'], $feedURL );Where:
$sc['default']: The default image set on the short code attributes.
$feedURL: The feed URL source/s.- feedzy_feed_timestamp
apply_filters( 'feedzy_feed_timestamp', $date_time, $feedURL, $item );Where:
$date_time: The current time.
$feedURL: The feed URL source/s.
$item: An item from The feed items array.- feedzy_default_error
apply_filters( 'feedzy_default_error', $error, $feed, $feedURL );Where:
$error: The error message.
$feed: The SimplePie feed object.
$feedURL: The feed URL source/s.- feedzy_author_url
apply_filters( 'feedzy_author_url', $authorURL, $authorName, $feedURL, $item );Where:
$authorURL: Link to the feed author's articles.
$authorName: Feed author's name.
$feedURL: The feed URL source/s.
$item: An item from The feed items array.- shortcode_atts_feedzy_default
apply_filters( 'shortcode_atts_feedzy_default', $sc, $feedURL );Where:
$sc: The short code attributes.
$feedURL: The feed URL source/s.- feedzy_meta_author
apply_filters( 'feedzy_meta_author', $author_meta, $author_name, $author_url, $source, $feed_url, $item );Where:
$author_meta: The rendered author meta HTML (the filtered value).
$author_name: Feed author name.
$author_url: Feed author source link.
$source: The feed source.
$feed_url: The feed URL source/s.
$item: An item from The feed items array.Note: the $feedURL argument (a variable which contains the displayed feed URL) is available for every hook, but is always optional. Use it for more targeted tweaks.
