Skip to content

Filter: apple_news_should_post_delete_on_trash

Kevin Fodness edited this page Nov 9, 2022 · 1 revision

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

Determines whether to delete an article via the Apple News API if it is moved from publish status to the trash in WordPress.

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 moved to the trash.

Source

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

Clone this wiki locally