WordPress REST API v2

The NGFB WordPress REST API v2 module extends the returned /wp-json/wp/v2/posts (including custom post types), terms, and users JSON with a new head array field consisting of html and parts arrays. The html array includes all HTML meta tags as individual array elements, along with the Person / Organization JSON-LD scripts. The parts array includes the individual components that make-up the HTML meta tags. Each parts element contains an array of 6 elements describing the HTML meta tag (the 6th element is an optional comment).

Here’s a simplified REST API response example showing the new head array field:

Here’s a complete REST API response example showing the new head array field: