LearnDash Social Learner Theme

This code adds BuddyBoss videos to LearnDash lesson content:

add_filter("learndash_content", function($content, $post) {
	
	if( class_exists('AppPresser') && AppPresser::is_app() ) {
		
		$meta = get_post_meta( $post->ID, '_boss_edu_post_video', 1 );
		
		if( $meta ) {
			$content = wp_oembed_get( $meta ) . $content;
		}
		
	}
	
	return $content;
	
}, 5, 2);