Download the PHP package megumi/wp-yahoo-feed without Composer
On this page you can find all versions of the php package megumi/wp-yahoo-feed. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package wp-yahoo-feed
megumi/wp-yahoo-feed
Helper class Generates the custom feed for Yahoo Japan for WordPress plugin.
- Cut the title in 28 chars.
- Replace the
guid
from uri to ID. - Filter the HTML of
<description />
that is allowed by Yahoo. - Set post-thumbnail to
<enclosure />
and add it to<item />
. - Add
caption
attribute to<img />
in<description />
; - Set post modified date to
<pubDate />
. - Add metabox for Yahoo's categories and set it to
<category />
. - Add trashed items to the feed.
Installation
Create a composer.json in your plugin root or mu-plugins
Place the following code into your plugin.
Then:
How to use
Then access to:
http://example.com/feed/my-feed
or http://example.com/feed/?type=my-feed
Customization
Filter Hooks
yahoo_feed_template_{$feed_name}
- Filters the feed template.yahoo_feed_item_title_width_{$feed_name}
- Filters the width of item's title.yahoo_feed_item_category_{$feed_name}
- Filters the category of the item.yahoo_feed_item_enclosure_image_size_{$feed_name}
- Filters the image size of post-thumbnail.yahoo_feed_item_default_enclosure_{$feed_name}
- Filters the default post-thumbnail.yahoo_feed_item_excerpt_{$feed_name}
- Filters the descrption of the item.yahoo_feed_item_allowed_html_{$feed_name}
- Filters the allowed html.
Action Hooks
yahoo_feed_item_{$feed_name}
- Fires at item node in the feed.
Contributing
Clone this project.
Run testing
Initialize the testing environment locally:
(you'll need to already have mysql, svn and wget available)
Install phpunit.
The unit test files are in the tests/
directory.
To run the unit tests, just execute:
Issue
All versions of wp-yahoo-feed with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3
The package megumi/wp-yahoo-feed contains the following files
Loading the files please wait ....