dozent_get_review_permalink( int $review_id )

Get the permalink of Course individual review by review ID


Description

This funtion return an URL of review permalink based given review ID.

Example usage:

dozent_get_review_permalink($review_id  );

Parameters

$review_id

(int) (Required) Review ID


Return

(bool|mixed|void)


Source

File: includes/template-functions.php

	function dozent_get_review_permalink( $review_id = 0 ) {

		if ( ! $review_id ) {
			return false;
		}

		$permalink = home_url( 'course-review/' . $review_id );

		/**
		 * Filter the Permalink generated by dozent_get_review_permalink();
		 *
		 * @since DozentLMS 1.0.0
		 *
		 * @see dozent_get_review_permalink();
		 *
		 * @param  string  $permalink  URL of review
		 * @param  int  $review_id  Review ID
		 */

		return apply_filters( 'dozent_get_review_permalink', $permalink, $review_id );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.