Skip to content

Commit 87b1829

Browse files
committed
Filter allowed post types
1 parent 8a94eb1 commit 87b1829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function init() {
1717
}
1818

1919
public function convert_email_message( $post ) {
20-
if ( ! in_array( $post->post_type, array( 'post', 'doc' ) ) ) {
20+
if ( ! in_array( $post->post_type, apply_filters( 'dbi_post_promoter_post_types', array( 'post', 'doc' ) ) ) ) {
2121
return;
2222
}
2323

0 commit comments

Comments
 (0)