Snippets: Enable Video Support for Cards

// Allow videos for all card styles that use the get_media method.
add_filter( 'wpex_card_allowed_media', function( $media ) {

    if ( is_array( $media ) && ! in_array( 'video', $media ) ) {
        $media[] = 'video';
    }

    return $media;

} );

Snippet Type: PHP

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)