Browse: Home / Functions /


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

Ensures the comments are open for assignments.

Description #

Fires on comments_open hook.

Parameters #


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


(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 #

Version Description
2.1.0 Introduced.