Skip to content

Filter: apple_news_skip_push

kevinfodness edited this page Oct 23, 2020 · 1 revision

apply_filters( 'apple_news_skip_push', bool $skip, int $post_id )

Filters whether the post should be skipped and not pushed to Apple News.

Parameters

$skip

(bool) Whether the post should be skipped. Defaults to false.

$post_id

(int) The ID of the post.

More Information

Allows you to stop publication of a post to Apple News based on your own custom logic. A common use case is to not publish posts with a certain category or tag. By default this is always false as all posts are published once they reach this step.

Source

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

Clone this wiki locally