From 9583e4b849affeea9e2e74d2814f36758b8a31de Mon Sep 17 00:00:00 2001 From: Camilla Krag Jensen Date: Tue, 7 May 2024 13:28:12 +0200 Subject: [PATCH] Add filtering for post types and status (#131) * Add filtering for post types and status * Code style --- lib/class-conversionprocessor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/class-conversionprocessor.php b/lib/class-conversionprocessor.php index 796d340..35d043e 100644 --- a/lib/class-conversionprocessor.php +++ b/lib/class-conversionprocessor.php @@ -53,7 +53,7 @@ class ConversionProcessor { * @return array Content types. */ public function get_conversion_post_types() { - return [ 'post' ]; + return apply_filters( 'ncc_filter_conversion_post_types', [ 'post' ] ); } /** @@ -62,7 +62,7 @@ public function get_conversion_post_types() { * @return array Content statuses. */ public function get_conversion_post_statuses() { - return [ 'publish' ]; + return apply_filters( 'ncc_filter_conversion_post_statuses', [ 'publish' ] ); } /**