Skip to content

Filter: apple_news_generate_json

kevinfodness edited this page Oct 23, 2020 · 1 revision

apply_filters( 'apple_news_generate_json', array $json, int $post_id )

Filters the final article JSON before being sent to Apple News.

Parameters

$json

(array) The PHP array representation of the article JSON before it is encoded into a string.

$post_id

(int) The ID of the post.

More Information

One of the most powerful filters available. This allows you to change any aspect of the final JSON right before it is sent to Apple News. Some sites use this to replace the content with their own custom templates.

Source

includes/apple-exporter/class-exporter.php

Clone this wiki locally