Skip to content

niallkennedy/json-feed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Feed plugin

A WordPress plugin powering JSON Feed s for a site. Early implementation, exploring the format in code.

Code Layout

Each major object of a JSON Feed -- feed, item, and author -- receive its own PHP objects to validate and clean up submitted content. These objects could be standard PHP with sanitizers provided to validate a URL string or strip HTML content.

String sanitization is WordPress-specific, using esc_url_raw and wp_kses for URLs and plain-text strings respectively.

WordPress site, post, and author information is collected in a "Builder" class. The builder checks for post type capabilities before including a property. Strings are passed through RSS-specific filters for consistency with RSS 2.0 and Atom 1.0 feeds generated by WordPress Core.

About

JSON Feed WordPress plugin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages