Filter: dt_sync_media_delete_and_replace

apply_filters( 'dt_sync_media_delete_and_replace', true, $post_id ) → {bool}

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

Parameters:
Name Type Description
true bool

Whether pre-existing media should be deleted and replaced. Default true.

$post_id int

The post ID.

Since:
  • 1.0.0
Source:
Returns:

Whether pre-existing media should be deleted and replaced.

Type
bool