Filter: dt_auto_distribute_post

apply_filters( 'dt_auto_distribute_post', $should_distribute, $post, $user_id, $connection_type, $connection_id ) → {bool}

Filter to determine if a post should be auto-distributed.

Parameters:
Name Type Description
$should_distribute bool

Whether the post should be auto-distributed.

$post WP_Post

WP_Post object for the post being pushed.

$user_id int

User ID of the user pushing the post.

$connection_type string

Type of connection ('external' or 'internal').

$connection_id int

Connection ID.

Since:
  • 2.2.0
Source:
Returns:

Whether the post should be auto-distributed.

Type
bool