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 |
$post_id |
int | The post ID. |
Returns:
Whether pre-existing media should be deleted and replaced.
- Type
- bool