apply_filters( 'learndash_registration_error_url', string $redirect_url )
Filters URL that a user should be redirected when there is an error while registration.
Description #
Parameters #
- $redirect_url
-
(string) The URL to be redirected when there are errors.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for learndash_registration_error_url filter.
*/
add_filter(
'learndash_registration_error_url',
function( $redirect_url ) {
// May add any custom logic using $redirect_url.
// Always return $redirect_url.
return $redirect_url;
}
);
Changelog #
| Version | Description |
|---|---|
| 3.1.1.1 | Introduced. |