Skip to content

Commit

Permalink
Merge pull request #1181 from leogermani/patch-2
Browse files Browse the repository at this point in the history
add filter to DistributorPost::to_pull_list
  • Loading branch information
dkotter authored Jan 18, 2024
2 parents 14b56e6 + 9d3374e commit f880331
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion includes/classes/DistributorPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,17 @@ protected function to_pull_list( $args = array() ) {
$display_data['distributor_original_site_name'] = $this->source_site['name'];
$display_data['distributor_original_site_url'] = $this->source_site['home_url'];

return $display_data;
/**
* Filters the post data for when they are being formated for a pull
*
* @since 2.0.3
* @hook dt_post_to_pull
*
* @param {array} $display_data The post data.
*
* @return {array} Modified post data.
*/
return apply_filters( 'dt_post_to_pull', $display_data );
}

/**
Expand Down

0 comments on commit f880331

Please sign in to comment.