Skip to content

Filter: apple_news_skip_push_term_ids

Kevin Fodness edited this page Sep 14, 2021 · 2 revisions

apply_filters( 'apple_news_skip_push_term_ids', int[] $skip_term_ids, int $post_id )

Filters whether the post should be skipped and not pushed to Apple News based on taxonomy term IDs that are associated with the post.

Parameters

$skip_term_ids

(int[]) The list of term IDs that should trigger a skipped push. Defaults to the term IDs set in plugin options.

$post_id

(int) The ID of the post being exported.

More Information

Allows you to stop publication of a post to Apple News based on whether a certain taxonomy term ID is applied to the post. A common use case is to not publish posts with a certain category or tag. The default value for this filter is the value of the skip push term IDs from the API settings for the plugin, but the list can be modified for individual posts via this filter.

Source

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

Clone this wiki locally