apply_filters( 'learndash_post_comments', boolean $cpt_has_comments , string $feed_post_type , WP_Post_Type $feed_post_type_object )
Filters whether to show comments for a CPT or not.
Description Description
Parameters Parameters
- $cpt_has_comments
-
Whether to show comments for the CPT or not.
- $feed_post_type
-
Post Type slug.
- $feed_post_type_object
-
WP_Post_Type instance.
Source Source
File: includes/ld-misc-functions.php
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |