learndash_assignment_is_points_enabled( int|WP_Post $assignment )
Checks if the points are enabled for the assignment.
Description #
Warning: This function is a candidate for deprecation. Use Has_Assignments::has_assignment_points_enabled()
instead.
Parameters #
- $assignment
-
(int|WP_Post) (Required) The assignment
WP_Post
object or ID.
Return #
(boolean) Returns true if the points are enabled otherwise false.