learndash_update_posts_comment_status( string $post_type = '', string|boolean $comment_status = false )
Updates the comment_status field for all the post of given post type.
Description Description
Parameters Parameters
- $post_type
-
(Optional) The post type slug.
Default value: ''
- $comment_status
-
(Optional) New comment status. Allowed values 'open' or 'closed'.
Default value: false
Source Source
File: includes/ld-misc-functions.php
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |