Filter: dt_push_post_media

apply_filters( 'dt_push_post_media', true, $new_post_id, $post_media, $post_id, $args, $this ) → {bool}

Allow bypassing of all media processing.

Parameters:
Name Type Description
true bool

If Distributor should push 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().

$post_id int

The original post ID.

$args array

The arguments passed into wp_insert_post.

$this Connection

The distributor connection being pushed to.

Source:
Returns:

If Distributor should push the post media.

Type
bool