pfeifferNet

RSS extends RSS
in package

RSS functionality.

Adds custom feeds for:

  • Complete site - including ingredients. Used for OneNote.
  • Recipe excerpts. Used for sharing on Facebook and Twitter.
  • Recipes complete. Used for Pinterest.
Tags
since
1.0.0
uses
RSS

Table of Contents

Constants

BACKLINK_CONTAINER  = 'rss-backlink.php'
The backlink container partial filename.
FEED_COMPLETE  = 'complete'
Complete feed slug.
FEED_RECIPES_COMPLETE  = 'recipes-complete'
Recipes complete feed slug.
FEED_RECIPES_EXCERPT  = 'recipes-excerpt'
Recipes excerpt feed slug.
IMAGE_CONTAINER  = 'rss-image.php'
Image content html.
IMAGE_SIZE  = 'medium'
Default image size to use in feed.
RECIPE_CATEGORY  = 'recipes'
Recipe category name.

Properties

$backlink_container  : string
The fully qualified path to the backlink container partial.
$image_container  : string
The fully qualified path to the featured image container partial.
$instances  : array<string|int, object>
The array of instances of this class and sub-classes.
$site_name  : string
Site name.
$site_url  : string
Site url.

Methods

add_custom_feeds()  : void
Add custom RSS feeds.
add_media_thumbnail()  : void
Add featured image to RSS2 feed items as media:thumbnail meta data.
append_backlink()  : string
Append backlink to feed contents - not excerpts.
disable_comments_feed()  : bool
Disable comment feeds.
do_custom_feed()  : void
Callback to render custom RSS2 feeds.
filter_feed_title()  : string
Filter custom RSS2 feed titles.
filter_image_size()  : string
Set image size to use in feed.
filter_posts()  : void
Set content to include in custom feeds.
filter_use_excerpt()  : int
Set excerpt or content explicitly for custom feeds.
get_instance()  : object
Creates and/or returns the instance of this class.
prepend_featured_image()  : string
Prepend featured image to feed contents and excepts.
__construct()  : void
Initialise the class.

Constants

The backlink container partial filename.

protected string BACKLINK_CONTAINER = 'rss-backlink.php'

This contains the text to be appended to an RSS entry with a backlink to the site home page.

Tags
since
5.5.0

FEED_COMPLETE

Complete feed slug.

protected string FEED_COMPLETE = 'complete'
Tags
since
1.6.0

FEED_RECIPES_COMPLETE

Recipes complete feed slug.

protected string FEED_RECIPES_COMPLETE = 'recipes-complete'
Tags
since
1.6.0

FEED_RECIPES_EXCERPT

Recipes excerpt feed slug.

protected string FEED_RECIPES_EXCERPT = 'recipes-excerpt'
Tags
since
1.6.0

IMAGE_CONTAINER

Image content html.

protected string IMAGE_CONTAINER = 'rss-image.php'

This contains the markup for the featured image to be prepended to an RSS entry.

Tags
since
5.5.0

IMAGE_SIZE

Default image size to use in feed.

protected string IMAGE_SIZE = 'medium'
Tags
since
5.3.0

RECIPE_CATEGORY

Recipe category name.

protected string RECIPE_CATEGORY = 'recipes'
Tags
since
5.3.0

Properties

The fully qualified path to the backlink container partial.

protected string $backlink_container = ''
Tags
since
5.5.0

$image_container

The fully qualified path to the featured image container partial.

protected string $image_container = ''
Tags
since
5.5.0

$instances

The array of instances of this class and sub-classes.

protected static array<string|int, object> $instances = array()
Tags
since
5.11.0

$site_name

Site name.

protected string $site_name = ''

Used to create feed title.

Tags
since
1.6.0

$site_url

Site url.

protected string $site_url = ''

Used to set backlink in feed items.

Tags
since
1.6.0

Methods

do_custom_feed()

Callback to render custom RSS2 feeds.

public do_custom_feed() : void
Tags
since
5.5.0

filter_image_size()

Set image size to use in feed.

public filter_image_size(string $image_size) : string
Parameters
$image_size : string

Standard image size.

Tags
since
1.6.0
Return values
string

The filtered image size.

get_instance()

Creates and/or returns the instance of this class.

public static get_instance() : object
Tags
since
5.11.0
Return values
object

The instance of this class.

__construct()

Initialise the class.

protected __construct() : void
Tags
since
1.0.0
since
5.5.0

Uses inheritance construct.

since
5.11.0

Deprecated global singleton.


        
On this page

Search results