Created
May 24, 2018 21:52
-
-
Save firasd/6d57184a2c5af6c33e9761421ddb53f4 to your computer and use it in GitHub Desktop.
Remove 'Mark Complete' button from lesson pages in Learndash course
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('learndash_mark_complete', function($return, $post) { | |
$course_hide_markcomplete = 0; | |
if(learndash_get_course_id($post->ID) == $course_hide_markcomplete) { | |
$return = ''; | |
} | |
return $return; | |
}, 10, 2); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not working