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:
$config: The SimplePie feed object.
- feedzy_feed_items
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 );
Where:
$sc: The short code attributes. $item: An item from The feed items array. $feedURL: The feed URL source/s.
- 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.
- feedzy_title_output
apply_filters( 'feedzy_title_output', $contentTitle, $feedURL );
Where:
$contentTitle: The content's title. $feedURL: The feed URL source/s.
- feedzy_meta_args
apply_filters( 'feedzy_meta_args', $metaArgs, $feedURL );
Where:
$metaArgs: Arguments array. $feedURL: The feed URL source/s.
- feedzy_meta_output
apply_filters( 'feedzy_meta_output', $contentMeta, $feedURL );
Where:
$contentMeta: Content's Metadata (Array). $feedURL: The feed URL source/s.
- feedzy_summary_input
apply_filters( 'feedzy_summary_input', $description, $content, $feedURL );
Where:
$description: The feed description. $content: The content of the feed. $feedURL: The feed URL source/s.
- 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.
- 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, $feedURL );
Where:
$sc: The short code attributes. $feedURL: The feed URL source/s.
- feedzy_feed_timestamp
apply_filters( 'feedzy_feed_timestamp', $date_time, $feedURL );
Where:
$date_time: The current time. $feedURL: The feed URL source/s.
- feedzy_default_error
apply_filters( 'feedzy_default_error', $error, $feedURL );
Where:
$error: The error Object. $feedURL: The feed URL source/s.
- 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.
- shortcode_atts_feedzy_default
apply_filters( 'feedzy_author_url', $sc, $feedURL );
Where:
$sc: The short code attributes. $feedURL: The feed URL source/s.
- feedzy_meta_author
apply_filters( 'feedzy_meta_author', $author_name, $author_url, $source, $feed_url, $item );
Where:
$author_name: Feed author name. $author_url: Feed author source link. $feedURL: The feed URL source/s.
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.