Browse: Home / Functions /

learndash_assignments_comments_open

learndash_assignments_comments_open( boolean $open,  int $post_id )

Handles whether the comments should be open for assignments.


Description #

Fires on comments_open hook.


Parameters #

$open

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

$post_id

(int) (Required) The post ID.


Return #

(boolean) True if the comments should be open otherwise false.


Source #

File: includes/ld-assignment-uploads.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.