Skip to content

Filter: apple_news_should_post_delete_on_unpublish

Kevin Fodness edited this page Nov 9, 2022 · 2 revisions

apply_filters( 'apple_news_should_post_delete_on_unpublish', bool $should_delete, int $post_id )

Determines whether to delete an article via the Apple News API if it is unpublished in WordPress (defined as moving a post from the publish status to any other status, including trash).

Parameters

$should_delete

(bool) Whether the post should be deleted via the Apple News API or not.

$post_id

(int) The ID of the post that was unpublished.

Source

admin/class-admin-apple-post-sync.php

Clone this wiki locally