Disable Video End Screen

Estimated reading time: < 1 min

To disable the xAPI Video end screen buttons, you need to add the following code to your theme’s functions.php file.

add_filter( "grassblade_video_config", function($config, $content_data) {
    if(!isset($config["video_endscreen"]))
        $config["video_endscreen"] = 0;
    return $config;
}, 10, 3);

We recommend using a child theme to make this change. It will get erased on theme updates if used in your main theme files.

If you’re facing any issues while using this code, feel free to contact us.

Was this article helpful?
Dislike 0 1 of 1 found this article helpful.

Leave a Reply

Your email address will not be published. Required fields are marked *

Shopping Cart