Skip to content

Commit

Permalink
Add filtering for post types and status (#131)
Browse files Browse the repository at this point in the history
* Add filtering for post types and status

* Code style
  • Loading branch information
naxoc authored May 7, 2024
1 parent 006cb6f commit 9583e4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/class-conversionprocessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ] );
}

/**
Expand All @@ -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' ] );
}

/**
Expand Down

0 comments on commit 9583e4b

Please sign in to comment.