Browse: Home / Functions /

learndash_comments_open

learndash_comments_open( boolean $open,  int|WP_Post $post_id )

Ensures the comments are open for assignments.


Description #

Fires on comments_open hook.


Parameters #

$open

(boolean) (Required) Whether the current post is open for comments.

$post_id

(int|WP_Post) (Optional) The post ID or WP_Post object. Default 0.


Return #

(int|WP_Post) $post_id The post ID or WP_Post object.


Source #

File: includes/ld-misc-functions.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.