Oh and is there any way to create a video sitemap using the plugin that I am not seeing? If no, any plugin that wp youtube lyte integrates well with for this?
-> selective microdata: I could add a filter to allow you(r developer) to disable/ enable microdata, but the logic to show/ not show the microdata will still have to be added off course.
-> view count: I could add some filters left and right to request & store extra data from the YT API, which could also be useful to remove microdata-data (yeah) if channel ID is not yours (again; logic to be added)?
-> video sitemap: no idea I’m afraid, sorry.
I’ll add some of those filters in the beta version (on github), more soon.
cheers,
frank
Update for selective microdata: that can already be done with the lyte_settings filter which allows one to change the $lyteSettings array, inclucing $lyteSettings['microdata'].
ok, see https://github.com/futtta/wp-youtube-lyte/commit/9cc5d0a5b44ad70f4409173a44d42aaeaff2f2c8
with those you(r developer) could/ should have fun with filters:
- use the new
lyte_filter_ytapi_video_params filter to ensure view count (part of statistics) is requested from the YT API
- use the new
lyte_filter_ytapi_pre_store_results filter to ensure the view count is extracted and cached AND to remove e.g. description if the channelID (which is in the YT API response is not yours
- use the existing
lyte_match_postparse_template which now has the YT response array as extra parameter to alter the LYTE output (e.g. to add the view count (from the statistics parameter somewhere)
enjoy! 😉
frank
You’re the man. Thank you so much Frank – these are (look) AMAZING. I will pass these along as they are a bit above my paygrade. Thank you so much!