Filter: dt_pull_post_media

apply_filters( 'dt_pull_post_media', true, $new_post_id, $post_media, $remote_post_id, $post_array, $this ) → {bool}

Allow bypassing of all media processing.

Parameters:
Name Type Description
true bool

If Distributor should set the post media.

$new_post_id int

The newly created post ID.

$post_media array

List of media items attached to the post, formatted by \Distributor\Utils\prepare_media().

$remote_post_id int

The original post ID.

$post_array array

The arguments passed into wp_insert_post.

$this NetworkSiteConnection

The Distributor connection being pulled from.

Source:
Returns:

If Distributor should set the post media.

Type
bool