Skip to content

Instantly share code, notes, and snippets.

View mzalewski's full-sized avatar

Matthew Zalewski mzalewski

View GitHub Profile
{
"id": 1800,
"date": "2017-01-31T00:00:00",
"post_title": "My Page Title",
"post_content": "Featured Images",
"content_buckets": {
"images": [
{
"id": "cb5df5c5-3128-4dc1-b5e4-19144f1dbbbb",
"attachment_id": 1848,
@mzalewski
mzalewski / score.php
Last active April 21, 2017 00:47
Code Snippet showing Score in post content
add_filter( 'the_content', 'add_review_score_content' );
function add_review_score_content( $content ) {
global $post;
if ( ! is_singular() || $post->post_type !== 'reviews' )
{
// It's not a single Review so just return standard content
return $content;