apply_filters( 'tribe_repository_delete_callback', callable $callback, array|int $to_delete, bool $background )

Filters the callback that all repositories should use to delete posts.


Parameters

$callback

(callable) The callback that should be used to delete each post; defaults to wp_delete_post; falsy return values will be interpreted as failures to delete.

$to_delete

(array|int) An array of post IDs to delete.

$background

(bool) Whether the delete operation will happen in background or not.


Top ↑

Source

File: src/Tribe/Repository.php


Top ↑

Changelog

Changelog
Version Description
4.9.5 Introduced.