Skip to content

Filter: apple_news_exporter_content_pre

kevinfodness edited this page Oct 23, 2020 · 1 revision

apply_filters( 'apple_news_exporter_content_pre', string $content, int $post_id )

Filters the HTML of a post before the_content filter is called, and before the HTML is parsed into Apple News Format.

Parameters

$content

(string) The post_content for the post, before the_content filter has been run.

$post_id

(int) The ID of the post.

More Information

This filter could be useful to remove content known to be incompatible with Apple News, or to add content stored in other areas of the database which should be run through the_content filter, such as shortcodes stored in postmeta or custom database tables.

Source

admin/apple-actions/index/class-export.php

Clone this wiki locally