Skip to content

Commit

Permalink
add filter to DistributorPost::to_pull_list
Browse files Browse the repository at this point in the history
  • Loading branch information
leogermani authored Jan 17, 2024
1 parent 14b56e6 commit 9d3374e
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 9d3374e

Please sign in to comment.