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

Ensures the comments are open for assignments.


Description Description

Fires on comments_open hook.


Parameters Parameters

$open

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

$post_id

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


Top ↑

Return Return

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


Top ↑

Source Source

File: includes/ld-misc-functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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