This hook has been deprecated. Use ‘learndash_course_step_completion_url’ instead.
apply_filters_deprecated( 'learndash_completion_redirect', string $redirect_url, int $step_id )
Filters URL to redirect to after marking a step complete.
Description #
Parameters #
- $redirect_url
-
(string) Next step redirect URL. Can be empty if post was not found for some reason.
- $step_id
-
(int) Course step post ID.
Return #
(string) Next step redirect URL.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php /** * Example usage for learndash_mark_complete filter. */ add_filter( 'learndash_mark_complete', function( $return, $post ) { // May add any custom logic using $return, $post. // Always return $return. return $return; }, 10, 2 );
Changelog #
Version | Description |
---|---|
4.11.0 | Introduced. Use 'learndash_course_step_completion_url' instead. |