Last active
October 1, 2025 04:36
-
-
Save MrVibe/026f2352be8dafcb32d93e7048ec083d to your computer and use it in GitHub Desktop.
Connect Start course button in Order page to app page
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
| add_filter('wplms_course_purchased',function($label,$course_id){ | |
| $page = vibebp_get_setting('bp_single_page'); | |
| if(function_exists('icl_object_id')){ | |
| $single_page = icl_object_id($single_page, 'page', true); | |
| } | |
| if(!empty($page)){ | |
| return '<li> | |
| <a class="course_name">'.get_post_field('post_title',$course_id).'</a> | |
| <a href="'.get_permalink($page).'#component=courses&action='.$course_id.'" class="button"> | |
| '.__('START COURSE','vibe').'</a> | |
| </li>'; | |
| } | |
| return $label; | |
| },10,2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment