[ad_1]
Plugin Contributor
Lap
(@lapzor)
I think that this code runs outside of the post loop so it doesn’t know what post we’re at and what it’s category is.
The mc4wp_integration_wp-comment-form_subscriber_data filter has $related_object_id as second parameter after the $subscriber.
I believe that would be the post ID in this case, that you can use to look up the post and get it’s category.
Kind regards,
