# themify-builder/trunk/themify/plugin-compat/learndash.php

Themify Builder, version trunk. 28 lines.

- Page: https://pluginprobe.com/plugins/themify-builder/trunk/code/themify/plugin-compat/learndash.php
- Raw: https://pluginprobe.com/plugins/themify-builder/trunk/raw/themify/plugin-compat/learndash.php
- Modified: 2024-05-27T20:18:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/themify-builder/trunk/code/themify/plugin-compat/learndash.php#L10-L20`.

```php
<?php
/**
 * Themify Compatibility Code
 *
 * @package Themify
 */

/**
 * LearnDash LMS
 * @link http://www.learndash.com/
 */
class Themify_Compat_learndash {

    static function init() {
        add_action( 'template_redirect', array( __CLASS__, 'template_redirect' ) );
    }

    /**
     * Fix video display in Focus Mode
     *
     * @access public
     */
    public static function template_redirect() {
        if ( is_singular( 'sfwd-lessons' ) ) {
            remove_filter( 'wp_video_shortcode_library', array( 'Themify_Enqueue_Assets', 'media_shortcode_library' ), 10 );
        }
    }
}
```
