Skip to main content

Filter: dt_sync_media_delete_and_replace

Filter whether media should be deleted and replaced if it already exists.

Parameters​

NameTypeDescription
$booltrue Whether pre-existing media should be deleted and replaced. Default false.
$post_idintThe post ID.

Since​

  • 1.0.0

Source​

Defined in includes/utils.php at line 1132

Returns​

Whether pre-existing media should be deleted and replaced.

Ready to Get Started?

Distributor is a WordPress plugin that makes it easy to syndicate and reuse content across your websites — whether in a single multisite or across the web.