refactor: remove forum and topic feature chains
This commit is contained in:
@@ -26,7 +26,7 @@ trait PayOrders {
|
||||
if ($post_id <= 0) {
|
||||
return;
|
||||
}
|
||||
// Only count normal posts (content pay), not necessarily forum topics.
|
||||
// Only count normal posts for content purchases.
|
||||
$post = get_post($post_id);
|
||||
if (!($post instanceof \WP_Post) || $post->post_type !== 'post') {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user