From 9d3374e514e937f53634b38c4a77c006b4d64940 Mon Sep 17 00:00:00 2001 From: leogermani Date: Wed, 17 Jan 2024 17:27:35 -0300 Subject: [PATCH] add filter to DistributorPost::to_pull_list --- includes/classes/DistributorPost.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/includes/classes/DistributorPost.php b/includes/classes/DistributorPost.php index d1b5c3645..96e965704 100644 --- a/includes/classes/DistributorPost.php +++ b/includes/classes/DistributorPost.php @@ -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 ); } /**