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


Top ↑

Source Source

File: includes/ld-misc-functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.