Filter: dt_auto_distribute_post
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
Defined in includes/auto-distribute.php at line 121
Returns
Whether the post should be auto-distributed.