Power users of WP YouTube Lyte might be particularly interested in the version that is being pushed out as we speak. 1.3.0 comes with an API, allowing you to substantially change the way the plugin works.
You have the following filters to play around with;
- lyte_settings; filter to change values in the settingsArray without changing the actual setting
- lyte_content_preparse; filter to change the_content before the httpv-links are being parsed
- lyte_match_preparse_fragment; filter to change an individual httpv-link before it is parsed
- lyte_match_postparse_template; filter to change the parsed code before it is merged back in the_content
- lyte_content_postparse; filter to parse the_content before it is being handed over to the next plugin
- lyte_css; filter to change WP YouTube Lyte’s CSS
- lyte_actionsfilters; action to add extra actions or filters, e.g. to make sure widget_text is parsed by lyte_parse as well
The plugin now comes with “lyte_helper.php_example” which is an sample plugin file that, when copied to “/wp-content/plugins/lyte_helper.php” can be activated as a separate plugin and which contains examples of how the API can be used.
For the less tech-savvy users, these are some of the other changes in 1.3.0 (from the changelog):
- Support for higher quality thumbnails by adding #hqThumb=1 to httpv-link
- You can disable microdata on a per-video level by adding #noMicrodata=1 to the httpv-link when microdata is enabled.
- Checkbox on admin-page to flush WP YouTube Lyte cache (which holds title, description, … from YouTube)
As always; feedback, bug reports, feature requests, criticism or code suggestions are more then welcome in the comments or via the contact form.
But whatever you do, make sure to have fun while doing it! This embedded YouTube audio track (a 2h BBC essential mix by Flying Lotus from back in 2008) might help, if you’re into that type of music that is;