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 #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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;
}
);