Description

This function returns the number of free places in a course.

Usage

$number = get_tp_course_free_places( $course_id, $places );

Parameters

course_id

(int) The id of the course.

places

(int) The number of places for the selected course.

Return

(int)

The number of free places.

Example

echo get_tp_course_free_places( $id, $places );

Changelog

  • Since: 3.1.7