learndash_essay_permissions_redirect_url

apply_filters( 'learndash_essay_permissions_redirect_url',  string $redirect_url )

Filters the URL to redirect a user if it does not have permission to view the essay.


Description #


Parameters #

$redirect_url

(string) Redirect URL.


Source #

File: includes/quiz/ld-quiz-essays.php


Examples #

 <?php
/**
 * Example usage for learndash_essay_permissions_redirect_url filter.
 */
add_filter(
	'learndash_essay_permissions_redirect_url',
	function( $redirect_url ) {
		// May add any custom logic using $redirect_url.

		// Always return $redirect_url.
		return $redirect_url;
	}
);